8000 Merge pull request #107 from ennioma/develop · ennioma/arek@f243e0e · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #107 from ennioma/develop
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
ennioma authored Jan 29, 2018
2 parents 3184695 + b2d956b commit f243e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Classes/Permissions/ArekCamera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ open class ArekCamera: ArekBasePermission, ArekPermissionProtocol {
}

open func status(completion: @escaping ArekPermissionResponse) {
switch AVCaptureDevice.authorizationStatus(for: AVMediaType.video) {
switch AVCaptureDevice.authorizationStatus(forMediaType: AVMediaTypeVideo) {
case .notDetermined:
return completion(.notDetermined)
case .restricted, .denied:
Expand All @@ -49,7 +49,7 @@ open class ArekCamera: ArekBasePermission, ArekPermissionProtocol {
}

open func askForPermission(completion: @escaping ArekPermissionResponse) {
AVCaptureDevice.requestAccess(for: AVMediaType.video) { (authorized) in
AVCaptureDevice.requestAccess(forMediaType: AVMediaTypeVideo) { (authorized) in
if authorized {
print("[🚨 Arek 🚨] 📷 permission authorized by user ✅")
return completion(.authorized)
Expand Down

0 comments on commit f243e0e

Please sign in to comment.
0