Core Data and SwiftUI

Posted on Sun 25 July 2021 in swift

One more day of 100 Days of SwiftUI done today. I also have family in town so I'm not doing much else.

We're tackling Core Data and SwiftUI in this new project, which is super fun. At my day job, working on iNat, we have to do a lot of data persistence so any kind of SwiftUI prototype or version of iNat will have to support data persistence and working in offline mode. It was cool to see all the things you get for free with the Xcode Core Data SwiftUI template - a shared persistence controller, a managed object context in the environment, and a @FetchRequest wrapper.

Movement in a grid