---
title: "removeConstraint(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsview/removeconstraint(_:)"
---

# removeConstraint(_:)

Removes the specified constraint from the view.

## Declaration

```swift
func removeConstraint(_ constraint: NSLayoutConstraint)
```

## Parameters

- `constraint`: The constraint to remove. Removing a constraint not held by the view has no effect.

## See Also

### Managing the View’s Constraints

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