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

# NSLayoutYAxisAnchor

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

## Declaration

```swift
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:)](appkit/nslayoutyaxisanchor/constraint(equaltosystemspacingbelow:multiplier:).md)
- [constraint(greaterThanOrEqualToSystemSpacingBelow:multiplier:)](appkit/nslayoutyaxisanchor/constraint(greaterthanorequaltosystemspacingbelow:multiplier:).md)
- [constraint(lessThanOrEqualToSystemSpacingBelow:multiplier:)](appkit/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:)](appkit/nslayoutyaxisanchor/anchorwithoffset(to:).md)

## Relationships

### Inherits From

- [NSLayoutAnchor](appkit/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](appkit/nslayoutconstraint.md)
- [NSLayoutXAxisAnchor](appkit/nslayoutxaxisanchor.md)

### Anchors

- [NSLayoutAnchor](appkit/nslayoutanchor.md)
- [NSLayoutXAxisAnchor](appkit/nslayoutxaxisanchor.md)
