It's almost #WWDC26, which means it's time for my annual sale – you can save 50% on my books and bundles! Pro Swift, Pro SwiftUI, Everything but the Code, and even my gigantic Everything Pack! www.hackingwithswift.com/offers/wwdc2...
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...
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/...
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/...
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?
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...
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!
“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 🫠
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...