WindowGroup (SwiftUI)
E770636
WindowGroup (SwiftUI) is a scene type that manages one or more windows for an app’s user interface, typically serving as the main entry point for presenting views in a SwiftUI application.
Statements (42)
| Predicate | Object |
|---|---|
| instanceOf |
API symbol
ⓘ
SwiftUI scene type ⓘ |
| allows | user to open additional windows on supported platforms ⓘ |
| canContain |
a root SwiftUI view
ⓘ
multiple windows of the same root view ⓘ |
| canSpecify | window title via initializer ⓘ |
| conformsTo | Scene ⓘ |
| declaredIn | SwiftUI.WindowGroup NERFINISHED ⓘ |
| definedInFramework | SwiftUI NERFINISHED ⓘ |
| documentationURL | https://developer.apple.com/documentation/swiftui/windowgroup ⓘ |
| hasInitializer |
init(@ViewBuilder content: () -> Content)
ⓘ
init(_ titleKey: LocalizedStringKey, @ViewBuilder content: () -> Content) ⓘ init<S>(_ title: S, @ViewBuilder content: () -> Content) where S : StringProtocol ⓘ |
| hasParameter | content view builder closure ⓘ |
| introducedInOSVersion |
iOS 14
NERFINISHED
ⓘ
macOS 11 ⓘ tvOS 14 NERFINISHED ⓘ watchOS 7 NERFINISHED ⓘ |
| language | Swift NERFINISHED ⓘ |
| lifecycleManagedBy | system ⓘ |
| oftenUsedAs | default scene in new SwiftUI app templates ⓘ |
| relatedTo |
DocumentGroup (SwiftUI)
NERFINISHED
ⓘ
Scene protocol ⓘ Window (SwiftUI) NERFINISHED ⓘ |
| replaces | UIWindowScene in many SwiftUI-only apps NERFINISHED ⓘ |
| scopeOfState | scene-level state for each window instance ⓘ |
| supportsFeature |
automatic window creation by the system
ⓘ
multiple window instances on macOS ⓘ state restoration across windows ⓘ |
| supportsModifier |
commands(_:) for adding menu commands
GENERATED
ⓘ
windowStyle(_:) on some platforms GENERATED ⓘ |
| supportsPlatform |
iOS
ⓘ
macOS ⓘ tvOS NERFINISHED ⓘ watchOS NERFINISHED ⓘ |
| typicalRole | main entry point scene for presenting views ⓘ |
| usedFor |
defining the main user interface of an app
ⓘ
grouping multiple windows of the same content ⓘ managing one or more windows ⓘ |
| usedIn | SwiftUI app lifecycle ⓘ |
| usedWith |
@main App conforming type
ⓘ
App protocol ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.
subject surface form:
App protocol (SwiftUI)