4min chapter

Swift by Sundell cover image

122: “Swift concurrency in practice”, with special guest Ben Scheirman

Swift by Sundell

CHAPTER

SwiftUI Previews

I want to use the majority of my app in a preview if I can, and that requires you to set up quite a lot of infrastructure to make this work. And but I think that the Xcode preview, especially, as compile times get larger when you're working on a bigger project, it's just like this feedback cycle should be really rapid. You know, if you look at people that do modern web development these days, it's all about hot reloading. And I really want that for iOS. But being able to run this within Xcode, stubbing things that you don't need is super powerful. In particular, I think animations behave slightly differently in SwiftUI previews.

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