DashStyle

public struct DashStyle : Hashable

Dash pattern for lines in a page.

  • Straight line without dash.

    Figure

    Declaration

    Swift

    public static var straightLine: DashStyle
  • Undocumented

    Declaration

    Swift

    public static let maxDashPattern: Int
  • Pattern of dashes and gaps used to stroke paths.

    Declaration

    Swift

    public let pattern: [Int]
  • The phase in which the pattern begins (default is 0).

    Declaration

    Swift

    public let phase: Int
  • Creates a dash style for lines.

    Declaration

    Swift

    public init?(pattern: [Int], phase: Int = 0)

    Parameters

    pattern

    Pattern of dashes and gaps used to stroke paths. Must contain only positive integers less than or equal to DashStyle.maxDashPattern; pattern.count must be an even number less than 9, or 1.

    phase

    The phase in which the pattern begins (default is 0). Must be nonnegative.

    Return Value

    A dash style for lines.