My mistake, sorry. completionHandler: (granted: Bool) is executed in another thread, hence no change. Did you look at wait/async pattern ? Or you could also use a semaphore that will be cleared in the completion handler.
Topic:
Programming Languages
SubTopic:
Swift
Tags: