Labels
public struct Labels : Equatable
Encapsulates the parameters of the labels for vertical and horizontal lines.
-
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
topThe parameters of the labels for vertical lines at the top of the grid. If specified
nil, no such labels will be drawn. Default value isnil.bottomThe parameters of the labels for vertical lines at the bottom of the grid. If specified
nil, no such labels will be drawn. Default value isnil.leftThe parameters of the labels for horizontal lines on the left of the grid. If specified
nil, no such labels will be drawn. Default value isnil.rightThe parameters of the labels for horizontal lines on the right of the grid. If specified
nil, no such labels will be drawn. Default value isnil.
View on GitHub
Labels Structure Reference