i am trying to determine if user gives access or not add photos only :
I’ve tried the Gallery authrization status not working , also this :
if PHPhotoLibrary.authorizationStatus() == PHAuthorizationStatus.authorized {
print("[CHECK] ok")
}else{
print("[CHECK] not ok")
}
is there any way to check if user gives access to add photos ?
i am using the below method to save to gallery :
UIImageWriteToSavedPhotosAlbum(image, {
}, nil, nil)
2
Answers
well there is not such a method can provide if i have access or not until now , but i've found this class and modified it to provide if i have access or not " saved or not "
how to use :
Since iOS 14 you are able to check if the user gave permission for add photos only: