---
title: close()
framework: spatialpreview
role: symbol
role_heading: Instance Method
path: spatialpreview/spatialpreviewsession/close()
---

# close()

Gracefully close the session

## Declaration

```swift
nonisolated(nonsending) func close() async throws
```
