SingleStep
public struct SingleStep<Title, Node, Substeps> where Title : View, Node : View, Substeps : IndexedViewContainer
extension SingleStep: View
Undocumented
-
Undocumented
Declaration
Swift
public init( id: String = UUID().uuidString, @ViewBuilder title: () -> Title, @ViewBuilder node: () -> Node, @IndexedViewBuilder substeps: () -> Substeps )
-
Separator line for
SingleStep
.Declaration
Swift
@ViewBuilder public var line: some View { get }
-
Customize step id.
Declaration
Swift
public func customStepId(_ id: String) -> SingleStep<Title, Node, Substeps>
Parameters
id
String value for step id.
Return Value
A new
SingleStep
with specific step id. -
Customize line size.
Declaration
Swift
public func lineSize(_ size: CGSize) -> SingleStep<Title, Node, Substeps>
Parameters
size
Size for step line.
Return Value
A new
SingleStep
with specific line size.
Available where Title
== _ConditionalContent<Text
, EmptyView
>, Node
== _StepNode
, Substeps
== _StepItemsContainer
-
Convenience initialization for empty sub-steps.
Declaration
Swift
init(id: String = UUID().uuidString, @ViewBuilder title: () -> Title, @ViewBuilder node: () -> Node)
Parameters
id
String value for step id.
title
Title for single step.
node
Node for single step.
-
Convenience initialization for empty title and sub-steps.
Declaration
Swift
init(id: String = UUID().uuidString, @ViewBuilder node: () -> Node)
Parameters
id
String value for step id.
node
Node for single step.
Available where Title
== _ConditionalContent<Text
, EmptyView
>, Node
== TextOrIconView
, Substeps
== _StepsContainer
-
Undocumented
Declaration
Swift
public init(model: SingleStepModel)
-
Undocumented
Declaration
Swift
public init(id: String = UUID().uuidString, title: String? = nil, node: TextOrIcon, substeps: [SingleStepModel] = [])
-
Undocumented
Declaration
Swift
public init( id: String = UUID().uuidString, @ViewBuilder node: () -> Node, @IndexedViewBuilder substeps: () -> Substeps )