filmov
tv
Lazy loading & image caching with UITableView swift 5 Hindi tutorial

Показать описание
Lazy loading in swift along with image caching in swift are two most important topics and the most commonly used feature in any iOS application. For the demo, we are fetching images from an API and displaying them in a UIImageView inside the UITableView.
Many beginners when displaying image from the server face the problem of UITableView freeze or having a glitch while scrolling the UITableView
In this video, I will present an example where we use lazy loading with UITableView in swift to resolve that issue. Along with lazy loading, I will also explain how we can cache an image in swift using NSCache.
Now it's important that I say that I am just explaining the general concept of lazy loading and image caching here with a small example of what they are and what problem they solve.
There are way better libraries that you can use which handle many complex scenarios for lazy loading an image like the one I mention in this video which is SDWebImage.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------
📥 Download the source code from
-----------------------------------------------------------------------------------------------------------------------
############################################
Connect with me on social media
###########################################
#lazyloadingInSwift #imageCachingInSwift #lazyLoadingExample
Many beginners when displaying image from the server face the problem of UITableView freeze or having a glitch while scrolling the UITableView
In this video, I will present an example where we use lazy loading with UITableView in swift to resolve that issue. Along with lazy loading, I will also explain how we can cache an image in swift using NSCache.
Now it's important that I say that I am just explaining the general concept of lazy loading and image caching here with a small example of what they are and what problem they solve.
There are way better libraries that you can use which handle many complex scenarios for lazy loading an image like the one I mention in this video which is SDWebImage.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------
📥 Download the source code from
-----------------------------------------------------------------------------------------------------------------------
############################################
Connect with me on social media
###########################################
#lazyloadingInSwift #imageCachingInSwift #lazyLoadingExample
Комментарии