AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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