Mixin

Swift is Protocol-Oriented Programming, and it’s more powerful by default implementations of extensions of protocols. You can mixin methods to classes like Ruby’s Mixin.

However, iOS as a UI framework, objects like UIViewController have their own life cyle, if you can’t listen life cyle methods, extensions as mixin don’t really help.


Posted

in

,

by

Tags:

Comments

Leave a Reply