RSDProgressIndicator

@IBDesignable
open class RSDProgressIndicator : UIView

RSDProgressIndicator is an animatable abstract view that marks progress. Override the progressLayer property to show progress using a shape layer. See RSDCountdownDial for an example implementation.

  • The progress of the indicator.

    Declaration

    Swift

    @IBInspectable
    open var progress: CGFloat { get set }
  • Set the progress position for the view using an animation duration.

    Declaration

    Swift

    open func setProgressPosition(_ newValue: CGFloat, animationDuration: TimeInterval)

    Parameters

    newValue

    The new value of the progress at the end of the animation.

    animationDuration

    The duration of the animation.

  • Override to implement progress layer.

    Declaration

    Swift

    open var progressLayer: CAShapeLayer! { get }