Adding watch data
A plist
drives our data for this app. There is not much difference when you get data from a plist
versus JSON. If I were building this app for the store, I would use a JSON feed. To make this easier, we are not going to do any of the data models together. Please open the chapter files, and you will see a folder called chapter assets
, and inside of that folder, you will see Models
, which will have all of the data we will need for this project. Drag and drop the files from the folder into your project now and make sure you have the extension selected.
Inside the Models
folder, open the draft.plist
file and you will see the following:
We have objects that we will use for our round data. We also have picks for each round, and each pick has prospect data:
Since what we will cover next is more about Swift rather than SwiftUI, I will skip breaking down the code I am writing for parsing...