Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Commit bc76c35

Browse files
committed
Added Unknown Default check to ScreenshotDetector.
1 parent 772f644 commit bc76c35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PinpointKit/PinpointKit/Sources/ScreenshotDetector/ScreenshotDetector.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ open class ScreenshotDetector: NSObject {
7272
self.photoLibrary.register(self)
7373
case .denied, .notDetermined, .restricted:
7474
self.fail(with: .unauthorized(status: authorizationStatus))
75+
@unknown default:
76+
break;
7577
}
7678
}
7779
}

0 commit comments

Comments
 (0)