MinorLineParameters

public struct MinorLineParameters : Hashable

Represents the properties of a grid’s minor lines.

  • Default parameters, where line width is 0.25, line color is 80% gray and the default number of minor segments per one major segment is 2.

    Declaration

    Swift

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

    Declaration

    Swift

    public var lineWidth: Float
  • The number of minor segments per one vertical major segment. Setting this property to N means that N-1 minor lines will be drawn between two adjacent major lines. Must be positive.

    Declaration

    Swift

    public var minorSegmentsPerMajorSegment: Int
  • The color of lines.

    Declaration

    Swift

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

    Declaration

    Swift

    public init(lineWidth: Float = 0.25,
                minorSegmentsPerMajorSegment: Int = 2,
                lineColor: Color = Color(gray: 0.8)!)

    Parameters

    lineWidth

    The width of a line. Default value is 0.25

    minorSegmentsPerMajorSegment

    The number of minor segments per one vertical major segment. Must be positive. Defaulr value is 2.

    lineColor

    The color of lines. Default is 80% gray.