writePlaceholder(at:withMetadata:)
Writes a document placeholder with the provided metadata.
Declaration
class func writePlaceholder(at placeholderURL: URL, withMetadata metadata: [URLResourceKey : Any]) throwsParameters
- placeholderURL:
The placeholder URL for the document. You can generate a placeholder URL from a document URL by calling Placeholderurl(for:).
- metadata:
The metadata for this document.
Discussion
Call this method whenever you need to create a placeholder for a document. The metadata that you provide depends largely on the needs of your document picker’s user interface; however, the common options include file size, filename, and thumbnails.
You must not override this method.