I tried using this function to receive the parameters from the custom url:
func application(_ application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
return true;
}
However, the function is never called and I receive warning: "Instance method 'application(:openURL:sourceApplication:annotation:)' nearly matches optional argument 'application(:open:sourceApplication:annotation:)' of protocol 'UIApplicationDelegate.
Based on XCode 8 Warning "Instance method nearly matches optional requirement" I tried using @objc with no success. How can I build a function that will be called when the app is opened and give me the parameters from the custom url scheme?