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

# invalidateEverything

A Boolean that indicates whether all layout data should be marked as invalid.

```
var invalidateEverything: Bool { get }
```

## Discussion

The collection view sets this property in response to specific layout invalidation scenarios. For example, the collection view sets the property to <doc://com.apple.documentation/documentation/Swift/true> when you change the current layout object, change the data source of the collection view, or call the [`reloadData()`](/documentation/AppKit/NSCollectionView/reloadData()) method and subsequently request a layout invalidation context.

When this property is set to <doc://com.apple.documentation/documentation/Swift/true>, the layout object must throw away all previous layout information and recompute it.

---

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)