in Swift:
my preliminary app has a view witch incorporates a particulars web page, the place some data is fetched from an json file and it’s displayed in a desk View; subsequent, I have to deal with Web connection; I bought two circumstances:
-
when beginning the app, if there isn’t a web connection, I wish to show a white clean view with an exercise Indicator. When the web connection is restored, I wish to show the main points View.
-
when beginning the app, if there may be web connection and I flip it off after 1 second, not all the info is about up within the tableView. I wish to show an alert with no web connection, and after I flip the web again on, the info to proceed to be loaded.
I’ve created an NetworkMonitor for getting the standing of the web connection; I’ve additionally tried to arrange the views within the scene delegate, however I don t know if it’s the proper strategy.