33
44/// The centralised point of control and coordination for running applications.
55open class Application : Responder {
6- /// Getting the Application Instance
6+ internal var information : Information ?
7+
8+ // MARK - Getting the Application Instance
79
810 /// Returns the singleton application instance.
911 public static var shared : Application = Application ( )
1012
11- /// Managing the Application's Behaviour
13+ // MARK - Managing the Application's Behaviour
1214
1315 /// The delegate of the application object.
1416 public var delegate : ApplicationDelegate ?
1517
16- /// Getting the Application State
18+ // MARK - Getting the Application State
1719
1820 /// The applications current state or that of its most active scene.
1921 public internal( set) var state : Application . State
2022
21- /// Getting Scene Information
23+ // MARK - Getting Scene Information
2224
2325 /// A boolean indicating whether the application may display multiple scenes.
2426 public var supportsMultipleScenes : Bool {
@@ -32,17 +34,22 @@ open class Application: Responder {
3234 /// system.
3335 public internal( set) var openSessions : Set < SceneSession > = [ ]
3436
35- /// Getting App Windows
36- public internal( set) var keyWindow : Window ?
37+ // MARK - Getting Application Windows
38+
39+ /// The application’s visible and hidden windows.
3740 public internal( set) var windows : [ Window ]
3841
42+ /// The application's key window.
43+ public internal( set) var keyWindow : Window ?
44+
3945 override public required init ( ) {
4046 self . state = . active
4147 self . windows = [ ]
4248 super. init ( )
4349 }
4450
45- // Responder Chain
51+ // MARK - Responder Chain Overrides
52+
4653 override public var next : Responder ? {
4754 // The next responder is the application delegate, but only if the
4855 // application delegate is an instance of `Responder` and is not a `View`,
@@ -54,8 +61,6 @@ open class Application: Responder {
5461 }
5562 return nil
5663 }
57-
58- internal var information : Information ?
5964}
6065
6166extension Application {
0 commit comments