---
title: openInPlace
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiapplication/openurloptionskey/openinplace
---

# openInPlace

A key containing a flag that indicates whether a document must be copied before you use it.

## Declaration

```swift
static let openInPlace: UIApplication.OpenURLOptionsKey
```

## Discussion

Discussion When the value of this property is false, you must copy the document to maintain access to it. If the flag is not set, you also must copy the document before you can use it. If the document does not need to be copied, you can open it in place in your implementation of the application(_:open:options:) method. For information about declaring whether your app wants the ability to open iCloud Drive documents in place, see the description of the LSSupportsOpeningDocumentsInPlace information property list key. For an example of an app that opens iCloud Drive documents in place, see ShapeEdit: Building a Simple iCloud Document App.

## See Also

### Accessing open-URL options

- [sourceApplication](uikit/uiapplication/openurloptionskey/sourceapplication.md)
- [annotation](uikit/uiapplication/openurloptionskey/annotation.md)
- [eventAttribution](uikit/uiapplication/openurloptionskey/eventattribution.md)
