Downloading Coin Images using Combine, MVVM, and a Networking Layer | SwiftUI Crypto App #8
Автор: Swiftful Thinking
Загружено: 2021-06-01
Просмотров: 15398
In this video we will download the logos for each cryptocurrency into the rows in our list! Previously, we have downloaded the coin data, but we need to now download the image data separately. This is actually done on purposes, because images (and videos) are much bigger file sizes than the JSON data. Because of this, we try to only download images/videos when they are coming onto the screen. There's no need to download extra images if they will never be displayed!
It's important to note the structure we are using here. It's very similar to the way we downloaded CoinModels. There is a View that references a ViewModel that references a Service that references the Networking layer. This is the core structure that we will continue to use as we build out the app! Keeping our code CLEAN and organized :)
*** 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: • Saving images to the File Manager | SwiftU...
Last video: • Add a reusable Networking layer | SwiftUI ...
🤙 WELCOME BACK 🤙
WEBSITE: https://www.swiftful-thinking.com
DISCORD: / discord
GITHUB: https://github.com/SwiftfulThinking/
SAY THANKS: https://www.buymeacoffee.com/nicksarno
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: