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.

All labels observed (3)

Label Occurrences
SwiftUI.WindowGroup 1
Window (SwiftUI) 1
WindowGroup (SwiftUI) canonical 1

How this entity was disambiguated

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
definedInFramework SwiftUI
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
macOS 11
tvOS 14
linked to: tvOS

watchOS 7
linked to: watchOS
language Swift
lifecycleManagedBy system
oftenUsedAs default scene in new SwiftUI app templates
relatedTo DocumentGroup (SwiftUI)
Scene protocol
Window (SwiftUI)
replaces UIWindowScene in many SwiftUI-only apps
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
windowStyle(_:) on some platforms
supportsPlatform iOS
macOS
tvOS
watchOS
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

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

App protocol (SwiftUI) relatedTo WindowGroup (SwiftUI)
subject linked to: App protocol
WindowGroup (SwiftUI) declaredIn SwiftUI.WindowGroup
linked to: WindowGroup (SwiftUI)
WindowGroup (SwiftUI) relatedTo Window (SwiftUI)
linked to: WindowGroup (SwiftUI)