One Logo Pool Ball
SwiftUI · IOS API REFERENCE

DocumentGroupLaunchScene

struct · iOS 18.0+ · SDK 27.1

nonisolated struct DocumentGroupLaunchScene<Actions> where Actions : View

A launch scene for document-based applications. You can use this launch scene alongside ``DocumentGroup`` scenes. If you don't implement a `DocumentGroup` in the app declaration, you can get the same design by implementing a ``DocumentLaunchView``. If you don't provide the title of the scene, it displays the application name. If you don't provide the actions builder, the scene has the default "Create Document" action that creates new documents. To customize the document launch experience, you can replace the standard screen background and title, add decorative views, and add custom actions. A `DocumentGroupLaunchScene` configures the document browser on the bottom sheet to open content types from all the document groups in the app definition. A `DocumentGroupLaunchScene` also configures the document groups to create documents of the first content type that your application can create and write. If you provide one or two actions, each one appears as its own button. If you provide more than two actions, only the first action appears as a button; SwiftUI groups the remaining actions into a secondary "More" menu. Because people can't create a new document from within that menu, place ``NewDocumentButton`` as the first action, or as the second action only when you provide exactly two actions in total. Use ``Button`` for any actions beyond the first two. For more information, see ``FileDocument.writableContentTypes`` and ``ReferenceFileDocument.writableContentTypes``.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

33 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

DocumentGroupLaunchScene.body

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:backgroundAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:overlayAccessoryView:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:_:background:)

callback cannot propagate synchronous failure

DocumentGroupLaunchScene.init(_:backgroundStyle:_:backgroundAccessoryView:overlayAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:backgroundAccessoryView:overlayAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:backgroundAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:backgroundAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:overlayAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:overlayAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:)

The iOS SDK compiler rejected this binding: cannot convert default value of type '() -> AnyView' to expected argument type '() -> DefaultDocumentGroupLaunchActions' for parameter #2

DocumentGroupLaunchScene.init(_:backgroundStyle:_:)

The iOS SDK compiler rejected this binding: cannot convert default value of type '() -> AnyView' to expected argument type '() -> DefaultDocumentGroupLaunchActions' for parameter #2

DocumentGroupLaunchScene.init(_:backgroundStyle:_:backgroundAccessoryView:overlayAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:backgroundAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:overlayAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

DocumentGroupLaunchScene.init(_:backgroundStyle:_:)

The iOS SDK compiler rejected this binding: cannot convert default value of type '() -> AnyView' to expected argument type '() -> DefaultDocumentGroupLaunchActions' for parameter #2

DocumentGroupLaunchScene.init(_:backgroundStyle:_:backgroundAccessoryView:overlayAccessoryView:)

This protocol needs associated types that cannot yet cross the bridge.

All SwiftUI types →