DocumentLaunchView
struct · iOS 18.0+ · SDK 27.1
nonisolated struct DocumentLaunchView<Actions, DocumentView> where Actions : View, DocumentView : ViewA view to present when launching document-related user experience. > Important: To create new documents, set <doc://com.apple.documentation/documentation/bundleresources/information-property-list/uisupportsdocumentbrowser> to `YES` in your app's information property list. Without this key, document creation doesn't work. Configure `DocumentLaunchView` to open and display files and trigger custom actions. For example, an application that offers writing books can present the `DocumentLaunchView` as its launch view: public import UniformTypeIdentifiers struct BookEditorLaunchView: View { var body: some View { DocumentLaunchView(for: [.book]) { NewDocumentButton("Start New Book") } onDocumentOpen: { url in BookEditor(url) } } } struct BookEditor: View { init(_ url: URL) { } } extension UTType { static let book = UTType(exportedAs: "com.example.bookEditor") } > Note: > An alternative to `DocumentLaunchView` is a scene variant of this API: ``DocumentGroupLaunchScene``. > If the app definition contains `DocumentGroup` scenes, consider using > a `DocumentGroupLaunchScene` instead of this view.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
49 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
DocumentLaunchView.body
This protocol needs associated types that cannot yet cross the bridge.
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:backgroundAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:_:onDocumentOpen:background:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:backgroundAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:backgroundAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:backgroundAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:overlayAccessoryView:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:)
callback cannot propagate synchronous failure
DocumentLaunchView.init(_:for:backgroundStyle:_:onDocumentOpen:backgroundAccessoryView:overlayAccessoryView:)
callback cannot propagate synchronous failure