SwiftUI Weekly - Issue #213
The curated collection of links about SwiftUI. Delivered every Monday.
Sponsor
Free mobile payments SDK by Square
Square’s new Mobile Payments SDK is free, and easy to embed—perfect for adding seamless in-app payments!
Reading
Introducing Swift Testing. Scoping.
Apple recently released Swift 6.1, with most of the changes being cosmetic. However, I particularly like the scoping feature introduced in the Swift Testing framework. This week, we’ll delve into the new test scoping feature and explore how to effectively utilize it in Swift.
Using Instruments to profile a SwiftUI app
A key skill for every app developer is being able to profile your app's performance. Your app might look great on the surface, but if it doesn’t perform well, it’s going to feel off—sometimes subtly, sometimes very noticeably. Beautiful animations, slick interactions, and large data sets all fall flat if the app feels sluggish or unresponsive.
What is @MainActor In Swift?
Today I want to explain a simple topic: the use of @MainActor
when you're using Swift. I came across this macro while programming async with SwiftUI, so I want to share my findings with you. Let's start with a scenario so we can understand the problem that this macro solves.
SwiftUI Colors – Exploring Overlooked Features
Working with colors is one of the most common tasks for any developer in SwiftUI. However, we almost always stick to the basics; we apply the necessary colors and sometimes we also change their opacity. So, in this post we'll see some not so well-known Color features; levels, gradients, mixing and shadows.
Is There A Better AsyncButton?
Can We Tap Into Button's Full Async Potential... Or Are We Pressing Luck?