Supplementary view resets to estimated height during animated layout change
Originator: | kellerbryan19 | ||
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. https://drive.google.com/file/d/12THxYgep4ef1LaC1K2jXn1Ytq6QkxKeU/view?usp=sharing
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!
Fixed
This appears to be fixed in iOS 17