🎉 End-of-year Sale! Save 25% when you subscribe today.

Styling with Overture

Episode #17 • May 28, 2018 • Subscriber-Only

We revisit an old topic: styling UIKit components. Using some of the machinery we have built from previous episodes, in particular setters and function composition, we refactor a screen’s styles to be more modular and composable.

Previous episode
Styling with Overture
Next episode
Locked

Unlock This Episode

Our Free plan includes 1 subscriber-only episode of your choice, plus weekly updates from our newsletter.

Sign in with GitHub

Introduction

Today’s episode is a new format where we take some real-world code and chip away at it to make it a little bit nicer. In this episode we’re going to focus on styling, a topic we’ve covered before, but we’re going to build on it with concepts from other, more recent episodes. In that episode, we showed how to style UIKit components using simple functions, and how function composition allowed us to layer these styles and compose them together. Later, we did a series of episodes on setters (1, 2, 3) where we showed that setters are wonderful, composable units that play nicely with Swift language-level features. Even later, we covered composition without operators, where we focus on composition as such an essential feature of functional programming that we shouldn’t let custom operators get in the way of embracing them.

We’re going to bring all of these ideas into one big refactor of a screen from the hypothetical, TBD, far-future Point-Free iOS app.

Pre-refactor


Downloads

Sample code

Get started with our free plan

Our free plan includes 1 subscriber-only episode of your choice, access to 64 free episodes with transcripts and code samples, and weekly updates from our newsletter.

View plans and pricing