StepProgressIndicator
public struct StepProgressIndicator
extension StepProgressIndicator: View
extension StepProgressIndicator: _ViewEmptyChecking
StepProgressIndicator
is a view supporting a list of StepItem
in a horizontal stack. Also customized steps are also supported.
Usage
@State var selection: String = "id"
var steps: [StepItem] = []
StepProgressIndicator(selection: self.$selection,
stepItems: self.steps)
Also indexed view builder is also supported.
StepProgressIndicator(title: <#T##() -> any View#>, action: <#T##() -> any View#>, cancelAction: <#T##() -> any View#>, selection: <#T##Binding<String>#>, steps: <#T##() -> any IndexedViewContainer#>)
You can also update step style for different states, if you created StepProgressIndicator
by [StepItem]
.
func stepStyle(_ style: @escaping ((_ id: String) -> (some StepStyle)?)) -> some View
-
Undocumented
Declaration
Swift
public init(@ViewBuilder title: () -> any View, @ViewBuilder action: () -> any View = { EmptyView() }, @ViewBuilder cancelAction: () -> any View = { FioriButton { _ in Text("Cancel".localizedFioriString()) } }, selection: Binding<String>, @IndexedViewBuilder steps: () -> any IndexedViewContainer = { EmptyView() }, componentIdentifier: String? = StepProgressIndicator.identifier)
-
Undocumented
Declaration
Swift
static let identifier: String
-
Undocumented
Declaration
Swift
init(title: AttributedString, action: FioriButton? = nil, cancelAction: FioriButton? = FioriButton { _ in Text("Cancel".localizedFioriString()) }, selection: Binding<String>, steps: [StepItem] = [])
-
Undocumented
Declaration
Swift
init(_ configuration: StepProgressIndicatorConfiguration)
-
Declaration
Swift
public var body: some View { get }
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }