Previously i was using XCode 8 beta 3 and testing it on iOS 10 device. But now i want my app to support previous versions of iOS. When i am trying to run it on iOS 9 device after decreasing the deployment target from project settings, this particular method is showing error since it's only available for iOS 10.0 or newer:
UIApplication.shared().open((url as URL), options: [:], completionHandler: nil)