Swift by Sundell cover image

107: “UIKit in 2021”, with special guest Ben Scheirman

Swift by Sundell

00:00

Swift Closures

Swift closures can't just give these things names, right? If you're passing around a blocka, this is just a series of arguments. One pattern that i find very useful in those kinds of situations is to create a realay object. So it can be, for example, let's say you are building some kind of photo ap and you have like, a photo selection a u i,. which consistsof all those different smaller view controllers that each do one thing. You can create kind of a photo selection relay where all of those chalvew controllers can observe the current selection, and they can change it. To your point, we'd like neatly named methods, and

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app