open(urls:selectedURL:)
Previews the provided URLs.
Declaration
final class func open(urls: [URL], selectedURL: URL? = nil) -> PreviewSessionParameters
- urls:
An array of URLs to present in the new
PreviewApplicationscene. - selectedURL:
If provided and in the array of passed URLs, the URL to select in the presented collection..
Return Value
A PreviewSession instance.
Discussion
This method launches the preview application with the provided URLs and, optionally, a selected URL.