SwiftUI Weekly - Issue #176
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
visionOS ornaments in SwiftUI
The new Apple Vision Pro device is almost here, and SwiftUI is the best way to build a visionOS app quickly and natively. This week, we will continue the topic of the new SwiftUI APIs that we can use to adapt our apps to visionOS. We will learn about the new user interface component called ornaments.
Comparing @Observable to ObservableObjects
With iOS 17, we’ve gained a new way to provide observable data to our SwiftUI views. Until iOS 17, we’d use either an ObservableObject
with @StateObject
, @ObservableObject
, or @EnvironmentObject
whenever we had a reference type that we wanted to observe in one of our SwiftUI views.
Exploring visionOS: hoverEffect
I am updating my app, Gradient Game for Apple Vision Pro, which looks amazing on a beautiful glass background and a chef kiss interaction when dragging sliders. The goal is to make the interaction with the elements feel more native to the platform.
StoreKit 2 Tutorial with Swift UI
With Swift and the new Observation framework, setting up subscriptions for your iOS app is easier than ever. We'll show you how from beginning to end.
Automating SwiftUI Accessibility Audits in Xcode 15
The Xcode 15 brought us a really nice new tool to check if our apps are compliant with accessibility rules or not. In the end, you just need to call performAccessibilityAudit in your XCUIApplication in an XCUITest target, and that’s it.
Create an animated transition with Matched Geometry Effect in SwiftUI
In SwiftUI we can create smooth transitions between views from one state to another with the Matched Geometry Effect. Using unique identifiers we can blend the geometry of two views with the same identifier creating an animated transition. Transitions like this can be useful for navigation or changing the state of UI elements.
Videos
SwiftData & CloudKit
See How To Add Syncing In Your Apps.