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

# limitsLayoutForSuspiciousContents

A Boolean value that indicates whether the layout manager avoids laying out unusually long or suspicious input.

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

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>, which causes the layout manager to lay out whatever text you give it. Changing the value to <doc://com.apple.documentation/documentation/Swift/true> causes the layout manager to generate invalid layout information when it detects potentially suspicious content.

---

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)