4min chapter

Swift by Sundell cover image

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

Swift by Sundell

CHAPTER

How to Get the Publisher Event to Fire Before the Underlying Property Is Written To

There is one small gatcha when using combine a. You may need to keep a copy of the data in your view controller just for this very reason. It can be also really useful that you have both your property still containing the old model, and the publisher sending you the new model. We mention some other kind of more u ikits base patterns, or patterns that are more popular in u i kit baste code,. things like the delegate pattern or the data source pattern.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode