Labels

public struct Labels : Equatable

Encapsulates the parameters of the labels for vertical and horizontal lines.

  • top

    The labels for vertical lines at the top of the grid.

    Declaration

    Swift

    public var top: Grid.LabelParameters?
  • The labels for vertical lines at the bottom of the grid.

    Declaration

    Swift

    public var bottom: Grid.LabelParameters?
  • The labels for horizontal lines on the left of the grid.

    Declaration

    Swift

    public var left: Grid.LabelParameters?
  • The labels for horizontal lines on the right of the grid.

    Declaration

    Swift

    public var right: Grid.LabelParameters?
  • Creates a new set of the label parameters for each kind of labels.

    Declaration

    Swift

    public init(top: LabelParameters? = nil,
                bottom: LabelParameters? = nil,
                left: LabelParameters? = nil,
                right: LabelParameters? = nil)

    Parameters

    top

    The parameters of the labels for vertical lines at the top of the grid. If specified nil, no such labels will be drawn. Default value is nil.

    bottom

    The parameters of the labels for vertical lines at the bottom of the grid. If specified nil, no such labels will be drawn. Default value is nil.

    left

    The parameters of the labels for horizontal lines on the left of the grid. If specified nil, no such labels will be drawn. Default value is nil.

    right

    The parameters of the labels for horizontal lines on the right of the grid. If specified nil, no such labels will be drawn. Default value is nil.