We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed79edb commit 8601678Copy full SHA for 8601678
Source/LBXPermissions.swift
@@ -26,7 +26,11 @@ class LBXPermissions: NSObject {
26
comletion(false)
27
case PHAuthorizationStatus.notDetermined:
28
PHPhotoLibrary.requestAuthorization({ (status) in
29
- comletion(status == PHAuthorizationStatus.authorized ? true:false)
+
30
+ DispatchQueue.main.async {
31
+ comletion(status == PHAuthorizationStatus.authorized ? true:false)
32
33
+ }
34
})
35
}
36
@@ -50,7 +54,10 @@ class LBXPermissions: NSObject {
50
54
case AVAuthorizationStatus.notDetermined:
51
55
52
56
AVCaptureDevice.requestAccess(for: AVMediaType.video, completionHandler: { (granted:Bool) in
53
- comletion(granted)
57
58
59
+ comletion(granted)
60
61
62
63
0 commit comments