Type Method


Returns a placeholder URL for a given document URL.


class func placeholderURL(for url: URL) -> URL



The document URL to be converted.

Return Value

A placeholder URL for the given document.


This method maps file URLs into their corresponding placeholder URLs. You typically call this method to generate the placeholder URL before calling writePlaceholder(at:withMetadata:).

See Also

Performing Actions

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software