Request Permission for Camera and Library in iOS 10 – Info.plist
You can also request for access programmatically, which I prefer because in most cases you need to know if you took the access or not. Swift 4 update: //Camera AVCaptureDevice.requestAccess(for: AVMediaType.video) { response in if response { //access granted } else { } } //Photos let photos = PHPhotoLibrary.authorizationStatus() if photos == .notDetermined { PHPhotoLibrary.requestAuthorization({status … Read more