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
How to Correctly use .secondary Hierarchy in SwiftUI
This is really cool. Been working in SwiftUI for a long time and I never pieced together that hierarchical styles match any parent colour applied. You can have multiple different hierarchies in your SwiftUI views, and apply a single foreground colour or style to that view and hierarchy will be taken into account.
Videos Watched
Apple Event
Apple’s iPhone 16 and Apple Watch event was this week. Looks like incremental changes, better cameras, titanium, and a new Blackberry style scroll pad for camera controls.
WWDC23 - Lift subjects from images in your app
Interesting WWDC video on how lifting subjects from images in your app works using VisionKit.
Articles Written
Introducing the #Localize Macro for Swift
I created a handy localization macro to help with localizing strings inside Swift package modules. Swift packages need to specify the bundle for localization to work properly, so this removes the need to specify each time.
SwiftUI Modifiers Deep Dive: presentationBackground
Presentation background is super handy for presenting sheets with a custom presentation style without affecting the view itself.
Thoughts
#Localize macro
With all the macro exploration last week, I found a decent use case to create one and I’ve released it on GitHub. It’s an easy inline freestanding macro that allows you to localize string resources in app targets and modules alike.
Hummingbird
Backend Swift? They just launched 2.0, interesting project, nicely designed site too.