SwiftUI Weekly - Issue #93
The curated collection of links about SwiftUI. Delivered every Monday.
Redux-like state container in SwiftUI. Swift concurrency model.
Over the last two years, I have actively used unidirectional flow to develop my apps. I covered the approach I use in the series of posts about building Redux-like state containers. This week I want to share with you how this approach adapts to the latest changes in Swift by applying the new concurrency model.
Writing testable code when using SwiftUI
Let’s take a look at how we can make our UI-related logic fully testable, even when that logic is primarily used within SwiftUI-based views.
How to use the Redacted View Modifier in SwiftUI with useful extensions
Learn how to use the redacted view modifier in SwiftUI to create skeleton views while data is being loaded.
From Hex to Color and Back in SwiftUI
How to convert SwiftUI Color into Hex and from Hex into Color with help of UIColor or CGColor respectively. Extension implementations are shared.
Exploring tvOS Development: Carousel
Creating a carousel header view using TabView and ScrollView.
SwiftUI Stack Custom Center Alignment
Using a custom alignment guide to control which view is centered in a SwiftUI stack.
SwiftUI versus UIKit
This time Stefan and I share our thoughts on the topic of choosing SwiftUI or UIKit for your next iOS project. Fortunately, things are very nuanced and there are also some clear guiding principles we were able to come up with.