StrokeStyle

The characteristics of a stroke that traces a path.

StructureiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+StrokeStyle in SwiftUI

Declaration

React
type StrokeStyle = { lineWidth?: number; lineCap?: 'butt' | 'round' | 'square'; lineJoin?: 'miter' | 'round' | 'bevel'; miterLimit?: number; dash?: number[]; dashPhase?: number; };
Swift
@frozen struct StrokeStyle

Properties

  • lineWidthnumber

    The width of the stroked path.

  • lineCap'butt' | 'round' | 'square'

    The endpoint style of a line.

  • lineJoin'miter' | 'round' | 'bevel'

    The join type of a line.

  • miterLimitnumber

    A threshold used to determine whether to use a bevel instead of a miter at a join.

  • dashnumber[]

    The lengths of painted and unpainted segments used to make a dashed line.

  • dashPhasenumber

    How far into the dash pattern the line starts.

Used by

See also

More in Styles.