I’d like to show a loading message until the collection view and it’s subviews have been completely rendered.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can speicfy an
emptyViewto render when a collection has no items in it. the collection view will handle this automatically. any time it sees the collection drop to zero items, it will render this instead. use that to show your “loading” message.Then in your code, you can pass a collection that has not yet been loaded in to the view, show it, and then load it.
This will render and show the collection view, displaying the loading message from the
emptyViewinitially. When the collection finishes it’s fetch, the “reset” event will trigger and the collection view will re-render with all of the items.