I have been following this tutorial to learn swift & iOS app development. In the Protocol section, the tutorial defined the following protocol:
@objc protoco
Add an extension to the protocol returning empty functions and default values. Any class that conforms to the protocol and wishes to override any func or var may optionally do so.
public protocol Speaker {
func Speak()
func TellJoke()
}
extension Speaker {
func Speak() {}
func TellJoke() { print("What did the Teabag say to the Octopus?"}
}
The bonuses are you don't inherit all of the obj-c baggage.