Welcome to another issue of Weekly Resources where I will be compiling all the articles that I have read, the videos I have watched, and the articles I have written alongside any other thoughts and ideas each week, released on Fridays.
I also launched a series on my blog called SwiftUI Modifiers Deep Dive, releasing an article every Wednesday about a new SwiftUI Modifier, be sure to check it out!
Articles Read
@Previewable: Dynamic SwiftUI Previews Made Easy
SwiftLee
Previewable is a handy tool in Xcode 16. If you’ve ever created a reusable view or component in your SwiftUI app that takes a Binding
, or needs any form of @State
, then we can finally use it within previews by annotating state with @Previewable
.
Swift Testing Tags
Apple Developer
In Xcode 16, Swift Testing is built in, and it comes with a handy new tagging feature. Tagged tests are even laid out in the sidebar when you are in the testing organizer.
Animating number changes in SwiftUI
Stefan Blos
I was looking into how to animate a SwiftUI Text with a number value. I wanted it to animate from 0 to N, and at first I was creating my own janky solution of animation steps and all. I thought there has to be a better way and found the above.
AnimatableModifier in SwiftUI
Swift with Majid
The previous article also led me to this one, where I learned more about AnimatableModifier
, although it has since been renamed to just Animatable
.
Articles Written
SwiftUI Content Modifiers Deep Dive: contextMenu
Swift.Mackarous
Another SwiftUI Modifier deep dive this week, where I explore context menus. Interesting use cases for context menus, they are pretty handy although I do sometimes forget they are there when using my phone day to day.
Thoughts
New Devices
It’s been 3 years since I’ve gotten any new Apple devices, so I ordered myself an iPhone 16 Pro Max this year, and it should be arriving this weekend. Anybody else order anything?