[SOLVED] iOS Swift 4 before loading content


I build chat app using Firebase API right now. I wan’t to make preload icons like on facebook screenshot. I thought i can create empty images and label fields and fill them after content loaded, but i don’t know how to check if all data loaded from DB. How i can do that in correct way?

enter image description here

This is where i want to place objects

enter image description here


  1. Install ListPlaceholder this lib.

  2. import ListPlaceholder

To show the loader, start showing this from start


To hide the loader, end showing after data has been loaded


Please refer this may get help.

Answered By – Harsh Pipaliya

Answer Checked By – Jay B. (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *