---
title: "open(urls:selectedURL:)"
framework: Quick Look
role: symbol
role_heading: Type Method
platforms: [visionOS 2.0+]
path: "quicklook/previewapplication/open(urls:selectedurl:)"
---

# open(urls:selectedURL:)

Previews the provided URLs.

## Declaration

```swift
final class func open(urls: [URL], selectedURL: URL? = nil) -> PreviewSession
```

## Parameters

- `urls`: An array of URLs to present in the new PreviewApplication scene.
- `selectedURL`: If provided and in the array of passed URLs, the URL to select in the presented collection..

## Return Value

Return Value A PreviewSession instance.

## Discussion

Discussion This method launches the preview application with the provided URLs and, optionally, a selected URL.
