GridStyle

public struct GridStyle

Control for the look of the Grid

  • Number of lines to break up the axis

    Declaration

    Swift

    public var numberOfLines: Int
  • Line Colour

    Declaration

    Swift

    public var lineColour: Color
  • Line Width

    Declaration

    Swift

    public var lineWidth: CGFloat
  • Dash

    Declaration

    Swift

    public var dash: [CGFloat]
  • Dash Phase

    Declaration

    Swift

    public var dashPhase: CGFloat
  • Model for controlling the look of the Grid

    Declaration

    Swift

    public init(
        numberOfLines: Int = 10,
        lineColour: Color = Color(.gray).opacity(0.25),
        lineWidth: CGFloat = 1,
        dash: [CGFloat] = [10],
        dashPhase: CGFloat = 0
    )

    Parameters

    numberOfLines

    Number of lines to break up the axis

    lineColour

    Line Colour

    lineWidth

    Line Width

    dash

    Dash

    dashPhase

    Dash Phase