Stroke

public struct Stroke : Hashable, Identifiable

A hashable version of StrokeStyle

StrokeStyle doesn’t conform to Hashable.

  • id

    Declaration

    Swift

    public let id: UUID
  • Undocumented

    Declaration

    Swift

    public init(
        lineWidth: CGFloat = 3,
        lineCap: CGLineCap = .round,
        lineJoin: CGLineJoin = .round,
        miterLimit: CGFloat = 10,
        dash: [CGFloat] = [CGFloat](),
        dashPhase: CGFloat = 0
    )