layoutManager(_:paragraphSpacingAfterGlyphAt:withProposedLineFragmentRect:)
Returns the amount of space to add at the end of a paragraph.
Declaration
optional func layoutManager(_ layoutManager: NSLayoutManager, paragraphSpacingAfterGlyphAt glyphIndex: Int, withProposedLineFragmentRect rect: CGRect) -> CGFloatParameters
- 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.
See Also
Handling line fragments
layoutManager(_:shouldBreakLineByHyphenatingBeforeCharacterAt:)layoutManager(_:shouldBreakLineByWordBeforeCharacterAt:)layoutManager(_:lineSpacingAfterGlyphAt:withProposedLineFragmentRect:)layoutManager(_:paragraphSpacingBeforeGlyphAt:withProposedLineFragmentRect:)layoutManager(_:boundingBoxForControlGlyphAt:for:proposedLineFragment:glyphPosition:characterIndex:)layoutManager(_:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:in:forGlyphRange:)