Cannot implement UIApplicationDelegate methods in Swift extensions
| Originator: | gorman.jan | ||
| Number: | rdar://28320421 | Date Originated: | 2016-09-15 |
| Status: | Behaves correctly | Resolved: | 2016-09-20 |
| Product: | Product Version: | Xcode Version 8.0 (8A218a) | |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
Prior to Swift 3 you could implement UIApplicationDelegate methods in an AppDelegate extension. Now this does not work anymore, instead you get an error message, e.g:
"Objective-C method 'application:didReceive:' provided by method 'application(_:didReceive:)' does not match the requirement's selector ('application:didReceiveLocalNotification:')"
Steps to Reproduce:
See attached project
Expected Results:
It should compile
Actual Results:
It fails to compile
Version:
Version 8.0 (8A218a)
Notes:
Configuration:
Attachments:
'Notifications.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!