Evening I have the following problem:
The Problem
My app is a web based app. It downloads the data from an API and you can display the results through different tableViews
.
When the LandingPage is loaded the app starts to download the data. The data are download through many async tasks.
I would like that the user can't use the app until the data are all downloaded, showing an activity indicator
.
I was thinking to show the activity indicator as soon the page is loaded and than stop it when the async closure is called.
The problem is that are like 5 async functions, and every async task make others async task.
So is there a way to understand if there is an async task running, and if yes: show the indicator, if not: stop the indicator?
Or, there is a better design patterns to accomplish this?