takePhoto method doesn't take into account what is in info.plist
Wh1rlw1nd opened this issue · comments
Vladimir commented
Hi, I am having issue because this method doesn't really take into account what is set in info.plist about Privacy - Camera usage. So, when I try to use camera, the system doesn't pop out with an alert about Camera usage description.
Here is the code:
func cameraAction() {
if UIImagePickerController.isSourceTypeAvailable(.camera) {
picker.takePhoto(editable: true).subscribe(onNext:{ [weak self] value in
guard let `self` = self else{ return }
if let editedImage = value.1{
self.viewModel.profileNewImageInput.accept(editedImage)
}
else{
self.viewModel.profileNewImageInput.accept(value.0)
}
}).disposed(by: dispose)
}
}
Am I supposed to do all checks by myself, or ?