Enumeration

SKLabelVerticalAlignmentMode

Options for aligning text vertically.

Declaration

typedef enum SKLabelVerticalAlignmentMode : NSInteger {
    ...
} SKLabelVerticalAlignmentMode;

Topics

Constants

SKLabelVerticalAlignmentModeBaseline

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

SKLabelVerticalAlignmentModeCenter

Centers the text vertically on the node’s origin.

SKLabelVerticalAlignmentModeTop

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

SKLabelVerticalAlignmentModeBottom

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

See Also

Controlling a Label's Alignment

verticalAlignmentMode

The vertical position of the text within the node.

horizontalAlignmentMode

The horizontal position of the text within the node.

SKLabelHorizontalAlignmentMode

Options for aligning text horizontally.