---
title: creationSource
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/documentcreationcontext/creationsource
---

# creationSource

The source associated with the button that created this document.

## Declaration

```swift
var creationSource: DocumentCreationSource? { get }
```

## Discussion

Discussion On iOS, you can specify the source via NewDocumentButton in DocumentGroupLaunchScene. On macOS, this is always nil.
