Instance Property

lineSpacing

The distance in points between the bottom of one line fragment and the top of the next.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, nonatomic) CGFloat lineSpacing;
macOS
@property(readonly) CGFloat lineSpacing;

Discussion

This value is always nonnegative. This value is included in the line fragment heights in the layout manager.

See Also

Accessing Style Information

alignment

The text alignment of the receiver.

firstLineHeadIndent

The indentation of the first line of the receiver.

headIndent

The indentation of the receiver’s lines other than the first.

tailIndent

The trailing indentation of the receiver.

lineHeightMultiple

The line height multiple.

maximumLineHeight

The receiver’s maximum line height.

minimumLineHeight

The receiver’s minimum height.

paragraphSpacing

The space after the end of the paragraph.

paragraphSpacingBefore

The distance between the paragraph’s top and the beginning of its text content.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software