I have this code:
DropboxClientsManager.authorizeFromController(UIApplication.shared, controller: self) {
(url: URL) in
print("**!!!**")
UIApplication.shared.open(url, options: [:]) {
success in
print("**!!!")
self.navigationItem.prompt = "**!!!"
}
print("*****")
self.navigationItem.prompt = "*****"
}I don't think the closure is running at all. It is the openURL argument. None of the print statements show. None of the changes to navigationItem.prompt show. When I comment the intire UIApplication.shared.open(url:options:completionHandler:) statement, there are no changes.
Does anyone know what the matter is?
Any help will be appreciated.