A lot of places I see extensions like this
class MyClass: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
}
extension MyClass: SomeProtocol {
func someFunc { }
}
Is there a good reason why the class is extended, instead of just conforming to the protocol the class itself?
class MyClass: UIViewController, SomeProtocol {
override func viewDidLoad() {
super.viewDidLoad()
}
func someFunc {}
}