SwiftUI Weekly - Issue #176
The curated collection of links about SwiftUI. Delivered every Monday.
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.
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.
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
@EnvironmentObject whenever we had a reference type that we wanted to observe in one of our SwiftUI views.
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.
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.
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.
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.
See How To Add Syncing In Your Apps.