FUIStepProgressIndicator

The FUIStepProgressIndicator is a UIView subclass that enables a developer to present linear steps progress using the default Fiori indicator.

Initialization and Configuration

Example of setting an FUIStepProgressIndicator:

   let view = FUIStepProgressIndicator(selection: "step id",
                                       stepItems: [FUIStepItem])
   view.title.text = "step title"
   view.primaryAction.setTitle("All Steps: 4)", for: .normal)
   view.primaryAction.setImage(UIImage(systemName: "chevron.right"), for: .normal)
   view.selectionDidUpdated = { [view] selection in
       // handle new title for selected step
   }

Theming

Supported FUIStepProgressIndicator class paths:

fdlFUIStepProgressIndicator {}
fdlFUIStepProgressIndicator_title {}
fdlFUIStepProgressIndicator_primaryAction {}

Supported Text attributes:

font-color (Color)
font-name (FontName)
font-style (UIFontTextStyle)
font-size (Number)

Supported FUIButton properties:

font-style: (Font Style Name)
font-color: (Color)
background-color-normal: (Color)
background-color-highlighted: (Color)

Supported Step properties:

fdlFUIStepProgressIndicator_normal/completed/error/disabled {
   node-foreground: white;
   node-foreground-highlighted: black;
   node-foreground-selected: black;
   node-background: white;
   node-background-highlight: white;
   node-background-selected: white;
   title-color: green;
   title-color-highlighted: black;
   title-color-selected: blue;
   title-color-selected-highlighted: red;
   font-name: callout;
   font-name-highlighted: callout;
   font-name-selected: callout;
   font-name-selected-highlighted: callout;

   font-name-vertical: callout;
   font-name-vertical-highlighted: callout;
   font-name-vertical-selected: callout;
   font-name-vertical-selected-highlighted: callout;

}

  • Currently selected step ID.

    Declaration

    Swift

    public var selection: String { get set }
  • All step items for FUIStepProgressIndicator.

    Declaration

    Swift

    public var stepItems: [FUIStepItem] { get set }
  • Callback for selected step ID changed.

    Declaration

    Swift

    public var selectionDidUpdated: ((String) -> Void)?
  • Title for the FUIStepProgressIndicator header.

    Declaration

    Swift

    public var title: FUIText
  • Primary action for the FUIStepProgressIndicator header.

    Declaration

    Swift

    public lazy var primaryAction: FUIButton { get set }
  • Initialization for FUIStepProgressIndicator

    Declaration

    Swift

    public init(selection: String = "",
                stepItems: [FUIStepItem])

    Parameters

    selection

    Currently selected step ID.

    stepItems

    All step items.

  • Declaration

    Swift

    open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?)