3
3
4
4
/// The centralised point of control and coordination for running applications.
5
5
open class Application : Responder {
6
- /// Getting the Application Instance
6
+ internal var information : Information ?
7
+
8
+ // MARK - Getting the Application Instance
7
9
8
10
/// Returns the singleton application instance.
9
11
public static var shared : Application = Application ( )
10
12
11
- /// Managing the Application's Behaviour
13
+ // MARK - Managing the Application's Behaviour
12
14
13
15
/// The delegate of the application object.
14
16
public var delegate : ApplicationDelegate ?
15
17
16
- /// Getting the Application State
18
+ // MARK - Getting the Application State
17
19
18
20
/// The applications current state or that of its most active scene.
19
21
public internal( set) var state : Application . State
20
22
21
- /// Getting Scene Information
23
+ // MARK - Getting Scene Information
22
24
23
25
/// A boolean indicating whether the application may display multiple scenes.
24
26
public var supportsMultipleScenes : Bool {
@@ -32,17 +34,22 @@ open class Application: Responder {
32
34
/// system.
33
35
public internal( set) var openSessions : Set < SceneSession > = [ ]
34
36
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.
37
40
public internal( set) var windows : [ Window ]
38
41
42
+ /// The application's key window.
43
+ public internal( set) var keyWindow : Window ?
44
+
39
45
override public required init ( ) {
40
46
self . state = . active
41
47
self . windows = [ ]
42
48
super. init ( )
43
49
}
44
50
45
- // Responder Chain
51
+ // MARK - Responder Chain Overrides
52
+
46
53
override public var next : Responder ? {
47
54
// The next responder is the application delegate, but only if the
48
55
// application delegate is an instance of `Responder` and is not a `View`,
@@ -54,8 +61,6 @@ open class Application: Responder {
54
61
}
55
62
return nil
56
63
}
57
-
58
- internal var information : Information ?
59
64
}
60
65
61
66
extension Application {
0 commit comments