---
title: hasAmbiguousLayout
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/hasambiguouslayout
---

# hasAmbiguousLayout

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

## Declaration

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

## Discussion

Discussion The value of this property is 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(_:) 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.

## See Also

### Debugging Auto Layout

- [constraintsAffectingLayout(for:)](appkit/nsview/constraintsaffectinglayout(for:).md)
- [exerciseAmbiguityInLayout()](appkit/nsview/exerciseambiguityinlayout().md)
