evgenyneu / moa

An image download extension of the image view written in Swift for iOS, tvOS and macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image flicker when table view reload called

sumeet85 opened this issue · comments

Hi

I m facing some issue when table view reload on swipe the screen flicker with white for 1 sec .
Is there way to stop flicker the table view reload and image called form server

Hi, thanks for reporting. If your code reloads the images in the table view, moa will send HTTP requests to the server to load images again. While images are being loaded, the image view will appear blank. This is probably what you are describing.

Possible solutions to this are:

  1. Show a placeholder image while the image is reloaded from server.

  2. Load images from cache by configuring caching on client or server side.

Let me know if it works for you. :)

Thanks for help

Yes this will help me stop the flicker the screen when i reload the table view

Cool, I am glad it helped. :)