hit counter

Timeline

My development logbook

Init Chain Rule in Swift

Swift has a narrow rule whereby a class with a designated initializer with no arguments is implicitly called by dereived class initializers if no other super.init call is specified and it is otherwise unambiguous. This is why you don’t need to explicitly call super.init() when subclassing NSObject, for example.