Instance Property

paragraphSpacing

The space after the end of the paragraph.

Declaration

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

Discussion

This property contains the space (measured in points) added at the end of the paragraph to separate it from the following paragraph. This value must be nonnegative. The space between paragraphs is determined by adding the previous paragraph’s paragraphSpacing and the current paragraph’s paragraphSpacingBefore.

See Also

Setting other style information

- setParagraphStyle:

Replaces the subattributes of the receiver with those in the specified paragraph style object.

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.

lineBreakMode

The mode that should be used to break lines in the receiver.

maximumLineHeight

The receiver’s maximum line height.

minimumLineHeight

The receiver’s minimum height.

lineSpacing

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

paragraphSpacingBefore

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

baseWritingDirection

The base writing direction for the receiver.

lineHeightMultiple

The line height multiple.