Vanquish Massive View Controllers Forever

Enroll in my free 5 day course that will help you make massive view controllers a thing of the past.

Remove associated type requirements by moving from protocols to structs

A few years ago, I wrote about a simple technique to encourage code reuse in data sources. I used this all the time in Objective-C, but I could never get it to quite feel right in Swift. I always had to resort to using type erasers or simply forgo strong types altogether.
Continue reading

How to Create Concise View Controllers by Using the Delegate Pattern

One of the most handy tools for creating small, concise view controllers is the delegate pattern. In this article, we'll learn how to implement the delegate pattern correctly, and we'll see how this pattern fits into our overall app architecture.
Continue reading

The Problem With Apple's View Controllers

If you want view controllers that are easy to work with, they need to be properly decoupled from the rest of your app. Let's explore some guidelines on how to avoid coupling.
Continue reading

Building a Custom UICollectionViewLayout from Scratch

Sometimes you know that creating a custom collection view layout is the right solution, but actually implementing it seems out of reach. Today, we'll learn to create layouts from scratch.
Continue reading

The Components of UICollectionViewLayout

It's easy to get lost in all the different elements involved in making a collection view layout look great. Let's learn about the different actors that make a layout come together.
Continue reading
Newer Older