---
title: constraints
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sknode/constraints
---

# constraints

A list of constraints to apply to the node.

## Declaration

```swift
var constraints: [SKConstraint]? { get set }
```

## Discussion

Discussion Assign an array of SKConstraint objects to the node. The scene processes these constraints before the scene is rendered. The constraints are processed in array order. If multiple nodes in the node tree have constraints, there is no guaranteed order that the nodes are processed in.

## See Also

### Constraining Node Position or Rotation

- [reachConstraints](spritekit/sknode/reachconstraints.md)
