cocoaheads-slovenija / charge-oclock

iOS client for theClocker; part of the learner project.
Other
4 stars 1 forks source link

Show network activity indicator #11

Open Andrej123 opened 7 years ago

Andrej123 commented 7 years ago

Show network activity indicator when network calls are in progress.

Andrej123 commented 7 years ago

Any tips on how to implement this feature. At this point the app is fairly simple. Is it appropriate to suppose that just one network request happens at a time and just activate the indicator using UIApplication.shared.isNetworkActivityIndicatorVisible before each network call, and soon after deactivate it in completion handler? Or should we suppose that more than just a single network call can take place at the same time, so that we implement some sort of counter to keep track of all the live network requests?

goranche commented 7 years ago

Is it appropriate

no