<!--
{
  "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/translatesAutoresizingMaskIntoConstraints",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(py)translatesAutoresizingMaskIntoConstraints"
  },
  "title" : "translatesAutoresizingMaskIntoConstraints"
}
-->

# translatesAutoresizingMaskIntoConstraints

A Boolean value that determines whether the view’s autoresizing mask converts to Auto Layout constraints.

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

## Discussion

If this property’s value is <doc://com.apple.documentation/documentation/Swift/true>, the system creates a set of constraints that duplicate the behavior specified by the view’s autoresizing mask. You can also modify the view’s size and location using the view’s [`frame`](/documentation/UIKit/UIView/frame), [`bounds`](/documentation/UIKit/UIView/bounds), or [`center`](/documentation/UIKit/UIView/center) properties, creating a static, frame-based layout within Auto Layout.

Because the autoresizing mask constraints specify the view’s size and position, you can’t add constraints to modify this size or position without introducing conflicts. To use Auto Layout to dynamically calculate the size and position of your view, set this property to <doc://com.apple.documentation/documentation/Swift/false>, and then provide a nonambiguous, nonconflicting set of constraints for the view.

Set this property on a subview from a containing superview or view controller, not from within the view itself:

```swift
customSubview.translatesAutoresizingMaskIntoConstraints = false
```

Don’t set this property on `self` inside a custom view’s own code, because this prevents the containing superview from managing its layout. Don’t modify this property’s value for views that UIKit classes manage, such as [`UITableViewCell`](/documentation/UIKit/UITableViewCell), [`arrangedSubviews`](/documentation/UIKit/UIStackView/arrangedSubviews), and [`view`](/documentation/UIKit/UIViewController/view). These classes handle layout automatically, and changing this property interferes with their layout behavior.

By default, the system sets this property to <doc://com.apple.documentation/documentation/Swift/true> for any view you programmatically create. If you add views in Interface Builder, the system automatically sets this property to <doc://com.apple.documentation/documentation/Swift/false>.

---

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)