List controllers, like
UICollectionViewController s, and any custom controllers used to display lists, are extremely common in iOS. Throughout the years various techniques have been used to move logic away from List controllers, but it is still easy to give them too much responsibility. Enter protocol extensions! With Swift 2.0’s flagship feature, we can elegantly abstract logic out of our list controllers and into our protocol extensions. By the end of this talk, you will be able to keep your list controllers slim by taking advantage of Swift’s protocol-oriented nature.
See the discussion on Hacker News .
Transcription below provided by Realm: a replacement for SQLite & Core Data with first-class support for Swift! Check out the Swift docs!