SwiftUI Weekly - Issue #140
The curated collection of links about SwiftUI. Delivered every Monday.
Sponsor
AICoding
Add SwiftUI code to your app in seconds. See why so many developers use AICoding to speedup their development process for a fraction of the OpenAI license cost. Learn more here
Reading
ImageRenderer in SwiftUI
I work on a medical app where the user needs to export health data rendered using the Swift Charts framework. It was straightforward to achieve by leveraging the power of the new ImageRenderer type. This week we will learn how to use the ImageRenderer type to export SwiftUI view as an image or PDF.
Discover how @MainActor works
So you want to learn how @MainActor works in Swift, but you don’t have a lot of time? In just a few minutes, we’ll go over everything you need to understand how this powerful feature works!
How to initialize @Binding in SwiftUI
If you create a SwiftUI View that has a @Binding
variable and need to implement a custom initializer for that view, you might get the following error when trying to initialize the @Binding
variable.
Code
SwiftUI Multiplatform Navigation Example
This repo is a 100% SwiftUI app showcasing examples of navigation, Multiplatform support & deep linking using the new NavigationStack & NavigationSplitView APIs based on the course that showcases everything you need to know about handling navigation in SwiftUI apps.
Videos
Speedrun Design: Heart Rate Zone View in SwiftUI
Recently I’ve been doing a lot of heart rate based training. This involves doing some activity (rowing, biking, running, etc…) with the goal of getting my heart rate into specific range and keeping it here. I find this is a really helpful way to improve my cardiovascular health, while putting minimal strain on my body more generally.