---
title: lineLayoutPadding
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextattachment/linelayoutpadding
---

# lineLayoutPadding

The layout padding before and after the text attachment bounds.

## Declaration

```swift
var lineLayoutPadding: CGFloat { get set }
```

## Discussion

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

- [bounds](uikit/nstextattachment/bounds.md)
- [contents](uikit/nstextattachment/contents.md)
- [fileType](uikit/nstextattachment/filetype.md)
- [image](uikit/nstextattachment/image.md)
- [fileWrapper](uikit/nstextattachment/filewrapper.md)
- [allowsTextAttachmentView](uikit/nstextattachment/allowstextattachmentview.md)
- [usesTextAttachmentView](uikit/nstextattachment/usestextattachmentview.md)
