File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Sources/SystemExtensionKit Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import SystemExtensions
12
12
#error("SystemExtensionKit doesn't support Swift versions below 5.5.")
13
13
#endif
14
14
15
- /// Current SystemExtensionKit version 1.1.4 . Necessary since SPM doesn't use dynamic libraries. Plus this will be more accurate.
16
- public let version = " 1.1.4 "
15
+ /// Current SystemExtensionKit version 1.1.5 . Necessary since SPM doesn't use dynamic libraries. Plus this will be more accurate.
16
+ public let version = " 1.1.5 "
17
17
18
18
public let SystemExtension = SystemExtensionKit . shared
19
19
@@ -57,7 +57,7 @@ public class SystemExtensionKit: NSObject {
57
57
case cancelExtension( OSSystemExtensionRequest , String , String )
58
58
}
59
59
60
- public enum ExtensionStatus {
60
+ public enum ExtensionStatus : CustomStringConvertible {
61
61
case unknown
62
62
case notInstalled
63
63
case waitingApproval( OSSystemExtensionProperties )
@@ -98,6 +98,19 @@ public class SystemExtensionKit: NSObject {
98
98
return false
99
99
}
100
100
}
101
+
102
+ public var description : String {
103
+ switch self {
104
+ case . unknown:
105
+ return " unknown "
106
+ case . notInstalled:
107
+ return " not installed "
108
+ case . waitingApproval:
109
+ return " waiting for userApproval "
110
+ case . installed:
111
+ return " installed "
112
+ }
113
+ }
101
114
}
102
115
103
116
public static let shared = SystemExtensionKit ( )
You can’t perform that action at this time.
0 commit comments