mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Add CloudKitCleanUpStatus.isActive.
This commit is contained in:
1 parent
1d8de2c7fb
commit
a7a534856d
1 file changed
+9
@@ -87,6 +87,15 @@ public enum CloudKitCleanUpStatus {
|
||||
}
|
||||
}
|
||||
|
||||
public var isActive: Bool {
|
||||
switch self {
|
||||
case .idle:
|
||||
return false
|
||||
case .cleaning, .completed, .canceled, .error:
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
public var cleanUpError: Error? {
|
||||
if case .error(let error) = self {
|
||||
return error
|
||||
|
||||
Reference in new issue
Block a user