Protocol Extension Initializer
问题 I would like to know what the protocol equivalent is for an initializer in a simple class that only contains initializing functionality and is only intended to be extended in a concrete class. So probably the easiest is to show the code - I'm looking for the protocol extension equivalent of the following: import UIKit class Thing { var color:UIColor init(color:UIColor) { self.color = color } } class NamedThing:Thing { var name:String init(name:String,color:UIColor) { self.name = name super