Supplementary view resets to estimated height during animated layout change

Number:rdar://FB9811483 Date Originated:2021-12-16
Status:Closed Resolved:Yes
Product:iOS / UIKit Product Version:iOS 15 SDK
Classification:Bug Reproducible:
When using `UICollectionViewCompositionalLayout` with self-sizing headers (estimated height boundary supplementary view), the headers animate to their estimated height before snapping back to their actual height in some cases. The issue appears to happen when an item contained in the header’s section changes its width dimension. For example, changing an item’s width dimension from `.fractional(1)` to `.fractional(0.5)` will cause the section’s header to animate to an estimated height.

The animation is implemented by calling `invalidateLayout()` in a `performBatchUpdates` closure.

See the attached example project for the exact setup.



This appears to be fixed in iOS 17

By kellerbryan19 at Feb. 1, 2024, 9:39 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!