[SOLVED] iOS Swift 4 before loading content

Issue

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

Solution

  1. Install ListPlaceholder this lib.

  2. import ListPlaceholder

To show the loader, start showing this from start

tableView.showLoader()

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

 tableView.hideLoader()

Please refer this may get help.
https://github.com/malkouz/ListPlaceholder

Answered By – Harsh Pipaliya

Answer Checked By – Jay B. (BugsFixing Admin)

Leave a Reply

Your email address will not be published.