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
viewand starts rotating.Declaration
Swift
public class func show(inView view: UIView, animated: Bool = true, backgroundMode: FUIModalProcessingIndicatorView.BackgroundMode = .translucentWhite) -> FUIModalProcessingIndicatorViewParameters
viewthe container view in which the processing indicator is centered.
animatedwhether the processing indicator is shown with a fade animation. The default is
true.backgroundModethe background mode to use when displaying the modal overlay. See
FUIModalProcessingIndicatorView.BackgroundMode.