<!--
{
  "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/UICollectionViewFlowLayoutInvalidationContext/invalidateFlowLayoutDelegateMetrics",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICollectionViewFlowLayoutInvalidationContext(py)invalidateFlowLayoutDelegateMetrics"
  },
  "title" : "invalidateFlowLayoutDelegateMetrics"
}
-->

# invalidateFlowLayoutDelegateMetrics

A Boolean indicating whether to recompute the size of items and views in the layout.

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

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>. Set this property to <doc://com.apple.documentation/documentation/Swift/true> if you’re invalidating the layout because of changes to the size of any items.

When this property is set to <doc://com.apple.documentation/documentation/Swift/true>, the flow layout object recomputes the size of its items and views, querying the delegate object as needed for that information.

---

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)