Enumeration

SKLabelVerticalAlignmentMode

Options for aligning text vertically.

Declaration

enum SKLabelVerticalAlignmentMode : Int

Topics

Constants

case baseline

Positions the text so that the font’s baseline lies on the node’s origin.

case center

Centers the text vertically on the node’s origin.

case top

Positions the text so that the top of the text is on the node’s origin.

case bottom

Positions the text so that the bottom of the text is on the node’s origin.

See Also

Controlling a Label's Alignment

var verticalAlignmentMode: SKLabelVerticalAlignmentMode

The vertical position of the text within the node.

var horizontalAlignmentMode: SKLabelHorizontalAlignmentMode

The horizontal position of the text within the node.

enum SKLabelHorizontalAlignmentMode

Options for aligning text horizontally.