Andrew Burger     About     Archive     Feed     Links

๐Ÿ“” 100 Days of SwiftUI (Day 37)

Completed Day 37 in 100 Days of SwiftUI.

This section revisits the data concepts from yesterday and added a few common ways to use these SwiftUI elements. We defined a second View in a separate source file and called it from the main ContentView in the app. We called JSONDecoder to decode previously saved data from disk. Finally, we designed a custom data model conforming to the Codable and Identifiable protocols that could create, store, and retrieve unique and persistent data store specified in a shared custom class.

It was enlightening to incrementally build a working application that showcases all these components working together.