My project is a mix of Obj-C and Swift, and I'm trying to extend my AppDelegate class with Swift.
So right now I have AppDelegate.m
, AppDelegate.h
, and AppDelegate.swift
. Most of the methods are in the Obj-C file, but I'm trying to implement just one of the methods:
extension AppDelegate {
func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {
}
}
However it's complaining:
AppDelegate.swift:11:10: Method 'application(_:continueUserActivity:restorationHandler:)' with Objective-C selector 'application:continueUserActivity:restorationHandler:' conflicts with previous declaration with the same Objective-C selector
Is this a limitation of Swift extension? Or is there a way to implement this delegate method in my Swift extension file?