miterLimit
TypeScriptget miterLimit(): numberSwift declarationvar miterLimit: CGFloatA threshold used to determine whether to use a bevel instead of a miter at a join.
struct · iOS 13.0+ · SDK 27.1
@frozen struct StrokeStyleThe characteristics of a stroke that traces a path.
get miterLimit(): numberSwift declarationvar miterLimit: CGFloatA threshold used to determine whether to use a bevel instead of a miter at a join.
set miterLimit(value: number)Swift declarationvar miterLimit: CGFloatA threshold used to determine whether to use a bevel instead of a miter at a join.
get animatableData(): AnimatablePair<number, AnimatablePair<number, number>>Swift declarationvar animatableData: StrokeStyle.AnimatableData { get set }The data to animate. SwiftUI reads this property to capture the current vector representation of the animatable state, and writes it back on each animation frame with an interpolated value. The default implementation returns ``EmptyAnimatableData``, meaning nothing is animated. Use the ``Animatable()`` macro to synthesize this property automatically. Implement it by hand only when you need custom interpolation logic such as clamping, normalization, or mapping to a derived value.
set animatableData(value: AnimatablePair<number, AnimatablePair<number, number>>)Swift declarationvar animatableData: StrokeStyle.AnimatableData { get set }The data to animate. SwiftUI reads this property to capture the current vector representation of the animatable state, and writes it back on each animation frame with an interpolated value. The default implementation returns ``EmptyAnimatableData``, meaning nothing is animated. Use the ``Animatable()`` macro to synthesize this property automatically. Implement it by hand only when you need custom interpolation logic such as clamping, normalization, or mapping to a derived value.
get dash(): Array<number>Swift declarationvar dash: [CGFloat]The lengths of painted and unpainted segments used to make a dashed line.
set dash(value: Array<number>)Swift declarationvar dash: [CGFloat]The lengths of painted and unpainted segments used to make a dashed line.
get lineCap(): _CoreGraphics_CGLineCapSwift declarationvar lineCap: CGLineCapThe endpoint style of a line.
set lineCap(value: _CoreGraphics_CGLineCap)Swift declarationvar lineCap: CGLineCapThe endpoint style of a line.
get lineJoin(): _CoreGraphics_CGLineJoinSwift declarationvar lineJoin: CGLineJoinThe join type of a line.
set lineJoin(value: _CoreGraphics_CGLineJoin)Swift declarationvar lineJoin: CGLineJoinThe join type of a line.
get dashPhase(): numberSwift declarationvar dashPhase: CGFloatHow far into the dash pattern the line starts.
set dashPhase(value: number)Swift declarationvar dashPhase: CGFloatHow far into the dash pattern the line starts.
static init(lineWidth?: number, lineCap?: _CoreGraphics_CGLineCap, lineJoin?: _CoreGraphics_CGLineJoin, miterLimit?: number, dash?: Array<number>, dashPhase?: number): StrokeStyleSwift declarationinit(lineWidth: CGFloat = 1, lineCap: CGLineCap = .butt, lineJoin: CGLineJoin = .miter, miterLimit: CGFloat = 10, dash: [CGFloat] = [CGFloat](), dashPhase: CGFloat = 0)Creates a new stroke style from the given components. - Parameters: - lineWidth: The width of the segment. - lineCap: The endpoint style of a segment. - lineJoin: The join type of a segment. - miterLimit: The threshold used to determine whether to use a bevel instead of a miter at a join. - dash: The lengths of painted and unpainted segments used to make a dashed line. - dashPhase: How far into the dash pattern the line starts.
get lineWidth(): numberSwift declarationvar lineWidth: CGFloatThe width of the stroked path.
set lineWidth(value: number)Swift declarationvar lineWidth: CGFloatThe width of the stroked path.
No declarations were skipped in this snapshot.