---
title: trailingAnchor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilayoutguide/trailinganchor
---

# trailingAnchor

A layout anchor representing the trailing edge of the layout guide’s frame.

## Declaration

```swift
var trailingAnchor: NSLayoutXAxisAnchor { get }
```

## Discussion

Discussion Use this anchor to create constraints with the layout guide’s trailing edge. You can only combine this anchor with a subset of the NSLayoutXAxisAnchor anchors. You can combine a trailingAnchor with another trailingAnchor, a leadingAnchor, or a centerXAnchor. For more information, see NSLayoutAnchor.

## See Also

### Creating constraints using layout anchors

- [bottomAnchor](uikit/uilayoutguide/bottomanchor.md)
- [centerXAnchor](uikit/uilayoutguide/centerxanchor.md)
- [centerYAnchor](uikit/uilayoutguide/centeryanchor.md)
- [heightAnchor](uikit/uilayoutguide/heightanchor.md)
- [leadingAnchor](uikit/uilayoutguide/leadinganchor.md)
- [leftAnchor](uikit/uilayoutguide/leftanchor.md)
- [rightAnchor](uikit/uilayoutguide/rightanchor.md)
- [topAnchor](uikit/uilayoutguide/topanchor.md)
- [widthAnchor](uikit/uilayoutguide/widthanchor.md)
