PitStopView
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
struct PitStopView<PitStop> : View where PitStop : View
A View for setting up a pitstop for eg: line with a circle or custom view
-
co-ordinates to draw the pitsop view.
Declaration
Swift
var proxy: GeometryProxy -
bounds value of the rendered step indicator
Declaration
Swift
var value: Anchor<CGRect> -
x-axis position of the line
Declaration
Swift
@Binding var lineXPosition: CGFloat { get nonmutating set } -
A pitsop view to render
Declaration
Swift
var pitStop: PitStop -
to customise the
width,Colorof the lineDeclaration
Swift
var lineOptions: StepperLineOptions -
Index position to calculate the height of the pitstop view
Declaration
Swift
var heightIndex: Int -
environment variable to access pitstop options
Declaration
Swift
@Environment var autoSpacing: Bool { get } -
Provides the content and behavior of this view.
Declaration
Swift
var body: some View { get } -
Returns the
Colorfrom the line options provided.Declaration
Swift
func getColor(from lineOptions: StepperLineOptions) -> ColorParameters
lineOptionscontains options to customize
widthandColorof the line
PitStopView Structure Reference