Fresh Swift
  • About
  • Tags
Fresh Swift

#mixin


Dependency Mixins in Swift using Protocol-Oriented-Programming

Eddie Sullivan describes an approach to handling dependencies between types. Eddie looks at the idea of using protocol-based mixins to reduce coupling. Although this is not exactly the approach I would take, it’s always worth learning about how others approach a common problem.

Posted on April 1, 2018

#protocol  #mixin 

Swift Protocols as UI Mixins

Christian Tietze comments on a GitHub gist which adds pull to refresh to a UITableView. The gist is a nice example of using a Swift protocol with a default implementation to add functionality to a UI element.

Posted on May 2, 2017

#protocol  #mixin  #gist 

 •  2021  •  Fresh Swift

Hugo v0.81.0 powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo