<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/removeConstraints(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(im)removeConstraints:"
  },
  "title" : "removeConstraints(_:)"
}
-->

# removeConstraints(_:)

Removes the specified constraints from the view.

```
func removeConstraints(_ constraints: [NSLayoutConstraint])
```

## Parameters

`constraints`

The constraints to remove.

## Discussion

When developing for iOS 8.0 or later, use the [`NSLayoutConstraint`](/documentation/UIKit/NSLayoutConstraint) class’s  [`deactivate(_:)`](/documentation/UIKit/NSLayoutConstraint/deactivate(_:)) method instead of calling the [`removeConstraints(_:)`](/documentation/UIKit/UIView/removeConstraints(_:)) method directly. The [`deactivate(_:)`](/documentation/UIKit/NSLayoutConstraint/deactivate(_:)) method automatically removes the constraints from the correct views.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)