FUIModalProcessingIndicator
public class FUIModalProcessingIndicator
FUIModalProcessingIndicator
provides convenience class methods for showing an overlay modal processing indicator view centered on screen.
You use the show()
method to display a FUIModalProcessingIndicatorView
.
The show()
methods return the created FUIModalProcessingIndicatorView
instance that can be used to dismiss()
the view again.
Usage
Show Fullscreen
//show the modal view:
let modalProcessingView = FUIModalProcessingIndicator.show()
...
// dismiss the modal view:
modalProcessingView.dismiss()
-
Shows the processing indicator in the center of
view
and starts rotating.Declaration
Swift
public class func show(inView view: UIView, animated: Bool = true, backgroundMode: FUIModalProcessingIndicatorView.BackgroundMode = .translucentWhite) -> FUIModalProcessingIndicatorView
Parameters
view
the container view in which the processing indicator is centered.
animated
whether the processing indicator is shown with a fade animation. The default is
true
.backgroundMode
the background mode to use when displaying the modal overlay. See
FUIModalProcessingIndicatorView.BackgroundMode
.