Рет қаралды 14,046
In the. last video, we successfully downloaded coin images into our list rows. They coin logos look great and give our app a much more professional feel. While most tutorials would probably stop here, we are going to take this an extra step further, and save these images to the .cachesDirectory within the FileManager. This will save the images to the device so that we can reuse images if they appear on the scree na second time, rather than downloading them again! Just another step toward making our app as efficient as possible.
It's important to note here that we are using the Caches Directory because these images aren't "required" in our app. If the directory ever gets too full, there's logic in the iPhone that will automatically start to empty the directory to free up space. Because of this, we are also including fall-back logic, so that if we ever don't have an image saved, we can easily start the download process for it.
*** LINKS:
- Downloadable Resources: www.swiftful-thinking.com/dow...
- CoinGecko API: www.coingecko.com/en/api
- CoinModel API: api.coingecko.com/api/v3/coin...
- Buy Me A Coffee: www.buymeacoffee.com/nicksarno
Next video: • Implement a custom and...
Last video: • Downloading Coin Image...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno