Non-'@objc' method does not satisfy optional requirement of '@objc' protocol
Overview: I have a protocol P1 which provides a default implementation of one of the Objective-C optional functions. When I provide a default implementation of the optional function there is a warning Compiler Warning: Non-'@objc' method 'presentationController(_:viewControllerForAdaptivePresentationStyle:)' does not satisfy optional requirement of '@objc' protocol 'UIAdaptivePresentationControllerDelegate' Version: Swift: 3 Xcode: 8 (public release) Attempts made: Tried adding @objc but doesn't help Question: How do I resolved this ? Is there a work around ? Code: @objc protocol P1 :