---
title: heightAnchor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilayoutsupport/heightanchor
---

# heightAnchor

A layout anchor representing the guide’s height.

## Declaration

```swift
var heightAnchor: NSLayoutDimension { get }
```

## Discussion

Discussion Use this anchor to create constraints with the guide’s height. You can only combine this anchor with other NSLayoutDimension anchors. For more information, see NSLayoutAnchor.

## See Also

### Creating constraints using layout anchors

- [bottomAnchor](uikit/uilayoutsupport/bottomanchor.md)
- [topAnchor](uikit/uilayoutsupport/topanchor.md)
