Linking a data store to a view

Опубликовано: 11 Март 2026
на канале: Cody Henrichsen
59
0

Loading JSON data to a data store and displaying the contents in a SwiftUI View

Table of Contents:

00:19 - The root view: DataView
00:26 - The @ObservedObject property wrapper
01:38 - The ForEach for the data store
01:56 - The BucketListItem type
02:22 - The BucketDataStore class
03:08 - The @Published property wrapper
03:25 - The init for the BucketDataStore
03:52 - The loadJSON method
04:52 - The do/catch structure for errors
05:21 - Create and return the appropriate Type
06:09 - Back to the DataView