Contents

unlock(completionHandler:)

Allows the user to make modifications to the document’s file.

Declaration

func unlock(completionHandler: (((any Error)?) -> Void)? = nil)
func unlock() async throws

Parameters

  • completionHandler:

    The completion handler block object passed in to be invoked after unlocking is completed, regardless of success or failure.

Discussion

By default, this method tries to clear the “user immutable” flag and, if necessary, add write permissions to the file itself.

See Also

Locking the Document