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

# hasAmbiguousLayout

A Boolean value indicating whether the constraints impacting the layout of the view incompletely specify the location of the view.

```
var hasAmbiguousLayout: Bool { get }
```

## Discussion

The value of this property is <doc://com.apple.documentation/documentation/Swift/true> when the view’s location or size cannot be determined definitively based on the current constraints.

Accessing this property engages the layout engine to determine whether any other frame would also satisfy the constraints on the view. Because this process involves laying out the view, accessing the property can be an expensive operation but it can also provide useful debugging information. AppKit automatically calls this method when a window is asked to visualize its constraints using the [`visualizeConstraints(_:)`](/documentation/AppKit/NSWindow/visualizeConstraints(_:)) method.

> Important:
> This property should be used only for debugging constraint-based layout. Do not access this property in the shipping version of your app.

---

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)