I have been following this tutorial to learn swift & iOS app development. In the Protocol section, the tutorial defined the following protocol:
@objc protoco
Looks like we only need to prefix protocol method with @objc in private class.
@objc
private class A: NSObject, SomeObjcProtocol { @objc func someProtocolMethod() {} }
Warning is not likely to rise for non-private class.
class A: NSObject, SomeObjcProtocol { func someProtocolMethod() {} }
Both are fine.