iOS Swift 2.3: correct syntax for application restorationHandler?
问题 I am trying to setup Firebase Dynamic Links in my iOS project using Swift 2.3. When I add this function in the AppDelegate (as reported at the bottom of this page), I get the error: Unknown attribute 'escaping' func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool { guard let dynamicLinks = FIRDynamicLinks.dynamicLinks() else { return false } let handled = dynamicLinks.handleUniversalLink(userActivity