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/...
www.hackingwithswift.com
Learn Swift coding for iOS with these free tutorials
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...
In this stream we're going to build an app that visualizes sorting algorithms, to help learners understand how they work. This requires some algorithm coding wrapped up in a surprisingly small amount ...
“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?
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/...
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/...