Contents

lineLayoutPadding

The layout padding before and after the text attachment bounds.

Declaration

var lineLayoutPadding: CGFloat { get set }

Discussion

The layout and rendering bounds X origin is inset by the padding value. This affects the relationship between the text attachment bounds and NSLayoutManager glyph metrics methods location(forGlyphAt:) and attachmentSize(forGlyphAt:). The default value is 0.0.

See Also

Defining the attachment’s contents