Alex Does Things Poorly

Alex does a variety of things poorly - swift, data science, datavis, ML, drawing, AR, unity, etc, etc.

9 July 2021

SwiftUI Project 7, Day 2

by alex

I’m dragging today, couldn’t sleep at all last night. At some point I got up to get a glass of water and realized I was having migraine aura. I didn’t have much headache, but some tightness and lots of visual artifacts. I finally got to bed around 5am and took a sick day.

Enough whining though, I finished another day of 100 Days of SwiftUI this afternoon. While working through the iExpense project, I stumbled across mention of another property wrapper that could be used to automatically sync a value with UserDefaults: @AppStorage. I want to explore that soon, since it could take a lot of the boilerplate out of wrapping a value in UserDefaults for state observation.

tags: swift - swiftui