---
title: trailingPadding
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextlayoutfragment/trailingpadding
---

# trailingPadding

The amount of margin space reserved during paragraph layout between the end of the lines in the paragraph and the trailing edge of the text layout fragment.

## Declaration

```swift
var trailingPadding: CGFloat { get }
```

## Discussion

Discussion This is with respect to the primary writing direction of the paragraph.

## See Also

### Defining margins and padding

- [bottomMargin](appkit/nstextlayoutfragment/bottommargin.md)
- [leadingPadding](appkit/nstextlayoutfragment/leadingpadding.md)
- [topMargin](appkit/nstextlayoutfragment/topmargin.md)
