---
title: PreviewSession
framework: Quick Look
role: symbol
role_heading: Structure
platforms: [visionOS 2.0+]
path: quicklook/previewsession
---

# PreviewSession

A structure with which you can control an existing session and receive events for the current preview application.

## Declaration

```swift
struct PreviewSession
```

## Topics

### Instance Properties

- [events](quicklook/previewsession/events.md)

### Instance Methods

- [close()](quicklook/previewsession/close().md)

### Enumerations

- [PreviewSession.Event](quicklook/previewsession/event.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
