---
title: "write(to:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/entity/configurationcatalog/write(to:)"
---

# write(to:)

Writes the configurations of the configuration catalog to a reality file.

## Declaration

```swift
@MainActor func write(to url: URL) async throws
```

## Parameters

- `url`: The destination where the configuration catalog writes the .reality file.

## Discussion

Discussion Another configuration catalog instance can open the .reality file for reading.
