NatProgressIndicatorCircular

public class NatProgressIndicatorCircular : UIView

NatProgressIndicatorCircular is a class that represents progress indicator circular component from the Design System. The component colors changes according to the current theme configured in the Design System.

The size and background can be set at init(). The component is already animating when it appears on the screen.

The component has 2 actions:

  • startAnimation(), which shows the animated progress indicator
  • stopAnimation(), which hides the progress indicator

Example of usage:

       let progressIndicator = NatProgressIndicator(size: .semi, backgroundLayer: true)

Requires

It’s necessary to configure the Design System with a theme or fatalError will be raised.

DesignSystem().configure(with: AvailableTheme)

Inits

Public methods

  • Starts the circle animation

    Declaration

    Swift

    public func startAnimation()
  • Stops the circle animation and hides the progress indicator

    Declaration

    Swift

    public func stopAnimation()
  • Sets a background layer for the component

    Declaration

    Swift

    public func configure(useBackgroundLayer: Bool)

    Parameters

    useBackgroundLayer

    a boolean that indicates if the component should have a background layer

  • Undocumented

    Declaration

    Swift

    public func configure(with action: Action, size: NatProgressIndicatorCircular.Size = .medium)

Overrides

  • Undocumented

    Declaration

    Swift

    override public func layoutSubviews()
  • Undocumented

    See more

    Declaration

    Swift

    public enum Size : CGFloat