Skip to content

Commit 861261b

Browse files
committed
Release 1.1.5
1 parent b49780e commit 861261b

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Sources/SystemExtensionKit/SystemExtensionKit.swift

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1818
public 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()

0 commit comments

Comments
 (0)