KSigWyatt KSigWyatt - 1 month ago 13
iOS Question

OpenURL in iOS10

So apparently

OpenURL
has been depreciated in iOS 10. Does anyone have any doccumentation on why or can explain what to do next? I looked on the Apple site already and found a few things pertaining to OpenURL and this is what they say to use now:

UIApplication.shared().open(url: URL, options: [String: AnyObject], completionHandler: ((Bool) -> Void)?)


Does anyone have any evidence that this is the new way to use OpenURL in Swift 3.0? In addition what values are to be used in the
options:
and
completionHandler:
parameters respectively?

Answer

The new UIApplication method openURL:options:completionHandler:, which is executed asynchronously and calls the specified completion handler on the main queue (this method replaces openURL:).

This is under Additional Framework Changes > UIKit at: https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewIniOS/Articles/iOS10.html