SwiftData doesn't synthesize Codable conformance for you, but adding it by hand follows the usual pattern. If your model has relationships, those need to be Codable too: www.hackingwithswift.com/quick-start/...
Sunday Build with HWS+: Visualize sorting algorithms step by step in SwiftUI, helping learners see exactly how bubble sort, insertion sort, and others actually work. #SundayBuild www.hackingwithswift.com/plus/live-st...
AttributedString lets you attach underlines, links, and background colors to your text, all independent of the view rendering it. The real power? It works semantically with dates, names, and measurements too. www.hackingwithswift.com/quick-start/...
“Heart rate 170? I’d better ease off with this treadmill.”
“Now it’s 175? Damn! I’d better slow down more.”
“180?!” *hits Emergency Stop for the first time ever*
The moral of this story: wear your glasses at the gym. Signed, someone who just burned 180 kcals 🫠
I help run the WWDC Community repository, which lists events taking place in and around #WWDC26. Previously we put indie app discounts there too, but the repo is so big I'm thinking to make a second repo just for that – to list app discounts available during WWDC. Useful or not?
For HWS+ subscribers: A flock of birds looks like it's thinking as one, but each bird actually just follows three simple rules. 🐦 We can implement Craig Reynolds' boids algorithm in SwiftUI, and the results are beautiful! www.hackingwithswift.com/plus/algorit...
enumerate() is SwiftData's answer to processing large datasets in batches. The concept is solid, though it's worth profiling in your own project to make sure memory behaves as expected: www.hackingwithswift.com/quick-start/...
One of the smallest, simplest features of Kickstart is also one of my favorites – it's a menu bar extra that adds useful developer things I need every day. Another completely free feature of Kickstart!
You can control SwiftUI particle effects by tilting your head while wearing AirPods, using gyroscopic sensors most developers don't even know exist. The whole system is built purely in SwiftUI, no SpriteKit or Metal required. www.hackingwithswift.com/articles/246...
Paul Hudson
Paul Hudson
Paul Hudson
Paul Hudson
Paul Hudson
Paul Hudson
Paul Hudson
Paul Hudson
Paul Hudson
Learn Swift coding for iOS with these free tutorials