Link Search Menu Expand Document

WindowSceneDelegate

Additional methods that you can use to manage application specific tasks occurring in a scene.

public protocol WindowSceneDelegate: SceneDelegate 

Inheritance

SceneDelegate

Default Implementations

window

public var window: Window? 

windowScene(_:didUpdate:interfaceOrientation:traitCollection:)

public func windowScene(_ windowScene: WindowScene,
                          didUpdate previousCoordinateSpace: CoordinateSpace,
                          interfaceOrientation previousInterfaceOrientation: InterfaceOrientation,
                          traitCollection previousTraitCollection: TraitCollection) 

Requirements

window

The main window associated with the scene.

var window: Window? 

windowScene(_:​didUpdate:​interfaceOrientation:​traitCollection:​)

Notifies you when the size, orientation, or traits of a scene change.

func windowScene(_ windowScene: WindowScene,
                   didUpdate previousCoordinateSpace: CoordinateSpace,
                   interfaceOrientation previousInterfaceOrientation: InterfaceOrientation,
                   traitCollection previousTraitCollection: TraitCollection)