<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocument/CreationIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIDocumentCreationIntent"
  },
  "title" : "UIDocument.CreationIntent"
}
-->

# UIDocument.CreationIntent

An app intent that creates new documents for your app.

```
struct CreationIntent
```

## Overview

UIKit provides a default intent. You can extend this structure to provide additional intents for your app.

```swift
// Extend the creation intent enumeration to add custom options for document creation.
extension UIDocument.CreationIntent {
    static let template = UIDocument.CreationIntent("template")
}
```

For more information, see [Customizing a document-based app’s launch experience](/documentation/UIKit/customizing-a-document-based-app-s-launch-experience).

## Topics

### Accessing creation intents

[`static let `default`: UIDocument.CreationIntent`](/documentation/UIKit/UIDocument/CreationIntent/default)

The default document creation intent.

### Creating new intents

[`init(String)`](/documentation/UIKit/UIDocument/CreationIntent/init(_:))

Create a new document creation intent using the provided string.

[`init(rawValue: String)`](/documentation/UIKit/UIDocument/CreationIntent/init(rawValue:))

Create a new document creation intent using the provided string.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)