SwiftUI Weekly - Issue #178
The curated collection of links about SwiftUI. Delivered every Monday.
Sponsor
RevenueCat
RevenueCat makes it easy to add subscriptions to your app, manage customers, and grow revenue with remotely configured paywalls and experiments. See why over 30,000 apps use RevenueCat's SDK to power their app business.
Reading
Migrating my SwiftUI App to VisionOS in 2 Hours
How I migrated my SwiftUI app CrossCraft to support visionOS for the Day 1 Release of the Apple Vision Pro. It took effectively about 2 hours in total, this article summarizes my key learnings along the way.
Mastering Model3D View
Explore how to use Model3D to load and display 3D models in a visionOS app.
An Introduction to Isolation in Swift
Recently, someone asked me a question about actor isolation. The specifics aren’t important, but I really got to thinking about it because of course they were struggling. Isolation is central to how Swift concurrency works, but it’s a totally new concept.
How to use VariadicView, SwiftUI's Private View API
SwiftUI has an undocumented system for interacting with collections of View
types known as VariadicView
. The enum _VariadicView
is the entry point to this system, which includes other types like _VariadicView_MultiViewRoot
and _VariadicView.Tree
.
How to delay an animation in SwiftUI
Learn how to wait for a certain amount of time before starting a SwiftUI animation.
Videos
Custom Calendar Tallies in SwiftUI
In this video I am going to show you how you can add a custom SwiftUI Calendar that I showed you how to build in a previous video to display tallies of events on the calendar. Turn the Calendar into a different kind of Chart view to get a better understanding of your data.
How to use MainActor with Observable Macro in SwiftUI
Discover how to combine the Observable Macro with MainActor for effective threading in SwiftUI apps. This tutorial guides you through managing UI updates and data changes on the main thread, utilizing the Observable Macro and MainActor to ensure smooth and responsive app performance. Ideal for SwiftUI developers seeking to optimize multithreading and data handling.