Instance Property

fileType

The file type of the document.

Declaration

var fileType: String? { get }

Discussion

The file type is a uniform type identifier (UTI). UIKit derives the UTI from the filename-extension component of fileURL.

UIKit sets this property before it calls the completion handlers of the open(completionHandler:), save(to:for:completionHandler:), and revert(toContentsOf:completionHandler:). If, outside of these methods or their completion handlers, you want to wait for any pending file operations to complete before you access this property, you can call performAsynchronousFileAccess(_:) and access the property value in the block parameter.

See Also

Related Symbols

var localizedName: String

The localized name of the document.

var fileModificationDate: Date?

The date and time the document file was last modified.

var documentState: UIDocumentState

Returns the current state of the document.