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
1212#error("SystemExtensionKit doesn't support Swift versions below 5.5.")
1313#endif
1414
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 "
1717
1818public let SystemExtension = SystemExtensionKit . shared
1919
@@ -57,7 +57,7 @@ public class SystemExtensionKit: NSObject {
5757 case cancelExtension( OSSystemExtensionRequest , String , String )
5858 }
5959
60- public enum ExtensionStatus {
60+ public enum ExtensionStatus : CustomStringConvertible {
6161 case unknown
6262 case notInstalled
6363 case waitingApproval( OSSystemExtensionProperties )
@@ -98,6 +98,19 @@ public class SystemExtensionKit: NSObject {
9898 return false
9999 }
100100 }
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+ }
101114 }
102115
103116 public static let shared = SystemExtensionKit ( )
You can’t perform that action at this time.
0 commit comments