<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionViewLayoutInvalidationContext/invalidateEverything",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICollectionViewLayoutInvalidationContext(py)invalidateEverything"
  },
  "title" : "invalidateEverything"
}
-->

# invalidateEverything

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

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

## Discussion

You do not set this property yourself. The collection view sets it in response to specific types of layout invalidation scenarios. For example, the collection view sets it 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/UIKit/UICollectionView/reloadData()) method and subsequently request a layout invalidation context.

If this property is set to <doc://com.apple.documentation/documentation/Swift/true>, the layout object should recompute all of its layout-related data.

---

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)