Swift Around the Web


Coding


Design

Other Cool Stuff

In Case You Missed It


Videos


Functional Voodoo

WATCH


Podcasts

Swift Code

Business


Swift ThoughtsSwift Thoughts

This week I've been thinking about View Controllers. Yes, View Controllers! While I haven't found many issues with them in Objective-C, I feel like I'm fighting them constantly in Swift, especially when it comes to working with dependency injection (having to use var vs let) and optionals (having to use explicitly unwrapped optionals for mandatory variables).

I'm not sure @chriseidhof's Functional View Controller is the right answer for us in the masses, but I would love to see a more functional re-write of UIViewController in the future which makes it easier to inject variables via a convenience initializer.

But to leave you on a happier note, the exciting news from this week is that there are almost 1000 Swift Pods on CocoaPods ! 🎉🍦🎈

NatashaTheRobot