init(_:backgroundStyle:_:)
Creates a launch scene for document-based applications with a title, a background style, and a set of actions.
Declaration
nonisolated init<B>(_ title: LocalizedStringKey, backgroundStyle: B = BackgroundStyle(), @ViewBuilder _ actions: () -> Actions = { DefaultDocumentGroupLaunchActions() }) where B : ShapeStyleParameters
- title:
A key to use for the view title.
- backgroundStyle:
A background style of the view.
- actions:
A view builder for returning the view’s actions.
Discussion
Use a DocumentGroupLaunchScene alongside any DocumentGroup scenes. If you don’t implement a DocumentGroup in the app declaration, you can get the same design by implementing a DocumentLaunchView.