Instance Property

verticalAlignmentMode

The vertical position of the text within the node.

Declaration

var verticalAlignmentMode: SKLabelVerticalAlignmentMode { get set }

Discussion

The possible values for this property are listed in SKLabelVerticalAlignmentMode. The default value of this property is SKLabelVerticalAlignmentMode.baseline.

See Also

Controlling a Label's Alignment

enum SKLabelVerticalAlignmentMode

Options for aligning text vertically.

var horizontalAlignmentMode: SKLabelHorizontalAlignmentMode

The horizontal position of the text within the node.

enum SKLabelHorizontalAlignmentMode

Options for aligning text horizontally.