---
title: NSLayoutYAxisAnchor
framework: uikit
role: symbol
role_heading: Class
path: uikit/nslayoutyaxisanchor
---

# NSLayoutYAxisAnchor

A factory class for creating vertical layout constraint objects using a fluent API.

## Declaration

```swift
@MainActor class NSLayoutYAxisAnchor
```

## Overview

Overview NSLayoutYAxisAnchor adds type information to the methods inherited from NSLayoutAnchor. Specifically, the generic methods declared by NSLayoutAnchor must now take a matching NSLayoutYAxisAnchor object. For more information on using layout anchors, see NSLayoutAnchor.

## Topics

### Building system spacing constraints

- [constraint(equalToSystemSpacingBelow:multiplier:)](uikit/nslayoutyaxisanchor/constraint(equaltosystemspacingbelow:multiplier:).md)
- [constraint(greaterThanOrEqualToSystemSpacingBelow:multiplier:)](uikit/nslayoutyaxisanchor/constraint(greaterthanorequaltosystemspacingbelow:multiplier:).md)
- [constraint(lessThanOrEqualToSystemSpacingBelow:multiplier:)](uikit/nslayoutyaxisanchor/constraint(lessthanorequaltosystemspacingbelow:multiplier:).md)
- [Creating self-sizing table view cells](uikit/creating-self-sizing-table-view-cells.md)

### Creating a layout dimension

- [anchorWithOffset(to:)](uikit/nslayoutyaxisanchor/anchorwithoffset(to:).md)

## Relationships

### Inherits From

- [NSLayoutAnchor](uikit/nslayoutanchor.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Related Documentation

- [NSLayoutConstraint](uikit/nslayoutconstraint.md)
- [Auto Layout Guide](apple-archive/documentation/UserExperience/Conceptual/AutolayoutPG.md)

### Anchors

- [NSLayoutAnchor](uikit/nslayoutanchor.md)
- [NSLayoutXAxisAnchor](uikit/nslayoutxaxisanchor.md)
- [NSLAYOUTANCHOR_H](uikit/nslayoutanchor_h.md)
