Modal Loading Indicator View¶
FUIModalLoadingIndicatorView
¶
open class FUIModalLoadingIndicatorView: NibDesignable
FUIModalLoadingIndicatorView
shows a FUILoadingIndicatorView
centered in a container area of the screen and disables interaction. The container can be either a view or a window.
By default, the loading indicator is shown centered on screen. The view is not visible and the animation is stopped until show()
is called.
Initialization¶
let modalLoadingIndicatorView = FUIModalLoadingIndicatorView()
Usage¶
Show Fullscreen¶
modalLoadingIndicatorView.show()
// do something
modalLoadingIndicatorView.dismiss()
Show in View¶
let containerView = UIView()
modalLoadingIndicatorView.show(inView: containerView)
// do something
modalLoadingIndicatorView.dismiss()
Last update: April 14, 2021