Add CloudKitCleanUpStatus.isActive.

This commit is contained in:
Brent Simmons committed 2026-03-23 20:55:31 -07:00
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