Type Property

shared

Returns the singleton app instance.

Declaration

class var shared: UIApplication { get }

Return Value

The app instance is created in the UIApplicationMain(_:_:_:_:) function.

Discussion

The UIApplicationMain(_:_:_:_:) function creates the shared app instance at launch time.