Instance Property


The vertical position of the text within the node.


var verticalAlignmentMode: SKLabelVerticalAlignmentMode { get set }


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.