Instance Method

layoutManager(_:paragraphSpacingAfterGlyphAt:withProposedLineFragmentRect:)

Returns the paragraph spacing after the line ending with the given glyph index.

Declaration

iOS, Mac Catalyst, tvOS
optional func layoutManager(_ layoutManager: NSLayoutManager, paragraphSpacingAfterGlyphAt glyphIndex: Int, withProposedLineFragmentRect rect: CGRect) -> CGFloat
macOS
optional func layoutManager(_ layoutManager: NSLayoutManager, paragraphSpacingAfterGlyphAt glyphIndex: Int, withProposedLineFragmentRect rect: NSRect) -> CGFloat

Parameters

layoutManager

The layout manager doing the layout.

glyphIndex

The index of the glyph at the end of the line.

rect

The proposed line fragment rectangle for the current line.

Return Value

The paragraph spacing after the current line.

Discussion

This message is sent while each line is laid out to enable the layout manager delegate to customize the shape of line.

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