I am using AppleHealthKit in my application. Everything is working correctly. The problem is that I can’t determine if the user removes the "Do not allow" button when asking for permission.

Using this method, my application uses HealthKit , even if the user does not allow this.
requestAuthorizationToShareTypes(healthKitTypesToWrite, readTypes: healthKitTypesToRead) { (success, error) -> Void in
if( completion != nil ) {
completion(success:success,error:error)
}
Apple Documentation:

So basically my question is how to detect this?
source
share