---
title: constraints
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/constraints
---

# constraints

Returns the constraints held by the view.

## Declaration

```swift
var constraints: [NSLayoutConstraint] { get }
```

## Return Value

Return Value The constraints held by the view.

## See Also

### Managing the View’s Constraints

- [addConstraint(_:)](appkit/nsview/addconstraint(_:).md)
- [addConstraints(_:)](appkit/nsview/addconstraints(_:).md)
- [removeConstraint(_:)](appkit/nsview/removeconstraint(_:).md)
- [removeConstraints(_:)](appkit/nsview/removeconstraints(_:).md)
