RSDStepProgressView

open class RSDStepProgressView: UIView

RSDStepProgressView is a UI element that displays a progress bar drawn horizontally from left to right.

This view includes an optional pointer to stepCountLabel which is not a subview of this view but can be used to display current step and number of steps.

The view controller must set currentStep and totalSteps to cause progress to be displayed.

  • A pointer to the label that should be updated with the current progress.

    Declaration

    Swift

    @IBOutlet public weak var stepCountLabel: UILabel?
  • The current step in the current flow.

    Declaration

    Swift

    public var currentStep: Int = 0
  • The total number of steps in the current flow.

    Declaration

    Swift

    open var totalSteps: Int = 0
  • Should the progress bar display with rounded ends?

    Declaration

    Swift

    open var hasRoundedEnds: Bool = false
  • Should the progress bar display with a light style of progress bar and label for use on a dark background, or with a dark style of progress bar for use on a light background?

    Declaration

    Swift

    open var usesLightStyle: Bool = false
  • The height of the actual progress bar.

    Declaration

    Swift

    open var progressLineHeight: CGFloat = 10.0
  • The progress (0 - 1.0) to display.

    Declaration

    Swift

    public var progress: CGFloat
  • Returns true if the total steps is greather than 0.

    Declaration

    Swift

    public var hasProgress: Bool
  • The text of the label that is displayed directly under the progress bar.

    Declaration

    Swift

    open func attributedStringForLabel() -> NSAttributedString?
  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    override public init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    open override func updateConstraints()