<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/translatesAutoresizingMaskIntoConstraints",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)translatesAutoresizingMaskIntoConstraints"
  },
  "title" : "translatesAutoresizingMaskIntoConstraints"
}
-->

# translatesAutoresizingMaskIntoConstraints

A Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system.

```
var translatesAutoresizingMaskIntoConstraints: Bool { get set }
```

## Discussion

When this property is set to <doc://com.apple.documentation/documentation/Swift/true>, the view’s superview looks at the view’s autoresizing mask, produces constraints that implement it, and adds those constraints to itself (the superview). If your view has flexible constraints that require dynamic adjustment, set this property to <doc://com.apple.documentation/documentation/Swift/false> and apply the constraints yourself.

---

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)