MajorLineParameters

public struct MajorLineParameters : Hashable

Represents the properties of a grid’s major lines.

  • Default parameters, where line width is 0.5, line spacing is 10, line color is 80% gray.

    Declaration

    Swift

    public static let `default`: Grid.MajorLineParameters
  • The width of lines.

    Declaration

    Swift

    public var lineWidth: Float
  • The spacing between lines. Must be positive.

    Declaration

    Swift

    public var lineSpacing: Float
  • The color of lines.

    Declaration

    Swift

    public var lineColor: Color
  • Creates a new line parameter set.

    Declaration

    Swift

    public init(lineWidth: Float = 0.5, lineSpacing: Float = 10, lineColor: Color = Color(gray: 0.8)!)

    Parameters

    lineWidth

    The width of a line. Default value is 0.5.

    lineSpacing

    The spacing between lines. Must be positive. Default value is 10.

    lineColor

    The color of lines. Default is 80% gray.