Creating a Coin Model based on JSON response from an API | SwiftUI Crypto App #3

Swiftful Thinking
Swiftful Thinking
21.1 هزار بار بازدید - 3 سال پیش - The first Model in our
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...

🤙 WELCOME BACK 🤙

WEBSITE: https://www.swiftful-thinking.com

DISCORD:  Discord: discord

GITHUB: https://github.com/SwiftfulThinking/

SAY THANKS: https://www.buymeacoffee.com/nicksarno
3 سال پیش در تاریخ 1400/03/06 منتشر شده است.
21,159 بـار بازدید شده
... بیشتر