Loading and caching images from URL in SwiftUI - AsyncImage or custom view model logic

preview_player
Показать описание
In this tutorial I will show you how to load images from an URL. First, I will use AsyncImage, which was added for SwiftUI this year for iOS 15. You will learn different implementation including loading and error states. I will also show an example for a custom loading view. This allows for more control.In order to improve the optimisation of the loading, I will talk about caching the images. This helps to lower the data consumption.

Overview
00:00 introduction
01:18 AsyncImage for iOS 15+
08:44 custom image view with image loading
20:56 performance optimisation with caching
27:12 bad example for loading images lazy
33:19 wrap up

🤩 Learn more

If you liked what you learned and you want to see more, check out one of my courses!
👩🏻‍💻 Combine course

#SwiftUI #AsyncImage
Рекомендации по теме
Комментарии
Автор

Thanks Karin, your tutorials are the only ones that include best practices when developing a new functionality 👍

luizcarlosmaiajunior
Автор

Wow! Very nice tutorial series! And finally, now I see how to initialize StateObject in initializer =)

vladimirmoor
Автор

Thanks for making this video. This is really helpful!

wowo
Автор

Perfect timing. I’ve been revisiting this lately

marcusziadev
Автор

thanks karin, next level of coding, great video

boltuix
welcome to shbcf.ru