<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLayoutGuide/trailingAnchor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutGuide(py)trailingAnchor"
  },
  "title" : "trailingAnchor"
}
-->

# trailingAnchor

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

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

## Discussion

Use this anchor to create constraints with the layout guide’s trailing edge. You can combine this anchor only with a subset of the <doc://com.apple.documentation/documentation/UIKit/NSLayoutXAxisAnchor> anchors. You can combine a [`trailingAnchor`](/documentation/AppKit/NSLayoutGuide/trailingAnchor) with another `trailingAnchor`, a `leadingAnchor`, or a `centerXAnchor`. For more information, see <doc://com.apple.documentation/documentation/UIKit/NSLayoutAnchor>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)