FUIModalLoadingIndicator

public class FUIModalLoadingIndicator

FUIModalLoadingIndicator provides convenience class methods for showing an overlay modal loading indicator view centered on screen.

You use the show() method to display a FUIModalLoadingIndicatorView. The show() methods return the created FUIModalLoadingIndicatorView instance that can be used to dismiss() the view again.

## Usage

### Show Fullscreen

 //show the modal view:
 let modalLoadingView = FUIModalLoadingIndicator.show()
 ...

// dismiss the modal view:
modalLoadingView.dismiss()
  • Shows the loading indicator in the center of view and starts spinning the activity indicator.

    Declaration

    Swift

    public class func show(inView view: UIView, animated: Bool = true) -> FUIModalLoadingIndicatorView

    Parameters

    view

    the container view in which the loading indicator is centered.

    animated

    whether the loading indicator is shown with a fade animation. The default is true.