- Create an UIView extension with loading indicators, with:
- startLoading;
- stopLoading;
We can change view opacity to a low level, hiding view information while the data are loading;
This way we have:
- view.startLoading()
- view.startLoading(withOpacityLevel: 0.3)
- view.startLoading(withCustomHUD: HUD.Normal, withOpacityLevel: 0.5)
- view.stopLoading()
We can change view opacity to a low level, hiding view information while the data are loading;
This way we have: