---
title: invalidateEverything
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewlayoutinvalidationcontext/invalidateeverything
---

# invalidateEverything

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

## Declaration

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

## Discussion

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 true when you change the current layout object, change the data source of the collection view, or call the reloadData() method and subsequently request a layout invalidation context. If this property is set to true, the layout object should recompute all of its layout-related data.

## See Also

### Invalidating the Collection View Data

- [invalidateDataSourceCounts](uikit/uicollectionviewlayoutinvalidationcontext/invalidatedatasourcecounts.md)
