---
title: leadingAnchor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/leadinganchor
---

# leadingAnchor

A layout anchor representing the leading edge of the view’s frame.

## Declaration

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

## Discussion

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

## See Also

### Creating constraints using layout anchors

- [bottomAnchor](uikit/uiview/bottomanchor.md)
- [centerXAnchor](uikit/uiview/centerxanchor.md)
- [centerYAnchor](uikit/uiview/centeryanchor.md)
- [firstBaselineAnchor](uikit/uiview/firstbaselineanchor.md)
- [heightAnchor](uikit/uiview/heightanchor.md)
- [lastBaselineAnchor](uikit/uiview/lastbaselineanchor.md)
- [leftAnchor](uikit/uiview/leftanchor.md)
- [rightAnchor](uikit/uiview/rightanchor.md)
- [topAnchor](uikit/uiview/topanchor.md)
- [trailingAnchor](uikit/uiview/trailinganchor.md)
- [widthAnchor](uikit/uiview/widthanchor.md)
