Skip to content

Modal Processing Indicator View

FUIModalProcessingIndicatorView

open class FUIModalProcessingIndicatorView: NibDesignable

FUIModalProcessingIndicatorView shows a FUIProcessingIndicatorView centered in a container area of the screen and disables interaction. The container can be either a view or a window. An overlay is shown behind the processing indicator, which covers the whole container. The overlay can be either set to translucent white or to be using a UIVisualEffectView to achieve a blurred background.

By default, the processing indicator is shown centered on screen and shows a translucent white overlay. The view is not visible and the animation is stopped until show() is called.

To change the background mode to blurred, simply assign BackgroundMode.blurred to the backgroundMode property.

Initialization

let modalProcessingIndicatorView = FUIModalProcessingIndicatorView()

Usage

Show Fullscreen

modalProcessingIndicatorView.show()
// do something
modalProcessingIndicatorView.dismiss()

Show in View

let containerView = UIView()
modalProcessingIndicatorView.show(inView: containerView)
// do something
modalProcessingIndicatorView.dismiss()

Last update: December 8, 2020