Link Search Menu Expand Document

Application

The centralised point of control and coordination for running applications.

open class Application: Responder 

Inheritance

Responder

Initializers

init()

override public required init() 

Properties

shared

Returns the singleton application instance.

public static var shared: Application 

delegate

The delegate of the application object.

public var delegate: ApplicationDelegate?

state

The applications current state or that of its most active scene.

public internal(set) var state: Application.State

supportsMultipleScenes

A boolean indicating whether the application may display multiple scenes.

public var supportsMultipleScenes: Bool 

connectedScenes

The application’s currently connected scenes.

public internal(set) var connectedScenes: Set<Scene> = []

openSessions

The sessions whose scenes are either currently active or archived by the system.

public internal(set) var openSessions: Set<SceneSession> = []

windows

The application’s visible and hidden windows.

public internal(set) var windows: [Window]

keyWindow

The application’s key window.

public internal(set) var keyWindow: Window?

next

override public var next: Responder?