Creating a Coin Model based on JSON response from an API | SwiftUI Crypto App #3
Swiftful Thinking Swiftful Thinking
43.2K subscribers
19,895 views
0

 Published On May 27, 2021

The first Model in our application is going to be a CoinModel and it will hold all of the data for a single coin that we will download from the API. In order to decode the JSON data correctly, we will have to type out custom coding keys for many of the variables. I can promise, however, that is will be the worst (and most boring) video of the course. We are doing it so early in the course simply because we will use CoinModels in most of the Views going forward!

** NOTES:

- You can download the CoinModel file from the resources page on my website via the link below.
- If you make a mistake typing anything in here, it will become apparent when we actually download and decode the data in the coming videos. Don't worry!

*** LINKS:

- Downloadable Resources: https://www.swiftful-thinking.com/dow...
- CoinGecko API: https://www.coingecko.com/en/api
- CoinModel API: https://api.coingecko.com/api/v3/coin...
- Buy Me A Coffee: https://www.buymeacoffee.com/nicksarno


Next video:    • Design a row to display coins in a Li...  
Last video:    • Creating HomeView and a navigation he...  

show more

Share/Embed