Using CollectionView for a list with items that can expand/collapse on tap doesn't properly resize on iOS #23033
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I am working on an application, which me and my team are porting from Xamarin.Forms to MAUI. In the Xamarin app we implemented an expansion list using CollectionView. The list would have several items and whenever you would tap on one it would expand the item. The expanded item could contain text, images, buttons etc.
However, now in MAUI, the same code using CollectionView works perfectly on Android, but on iOS whenever I collapse an item the size doesn't change back to the original one.
I attached two images to showcase it. In the first one you can see how the list should open when first accessing the page containing it (iOS left, Android right).
On the second image I collapsed the first item in the list and as you can see for iOS it doesn't resize
The size of the item goes back to normal only if I scroll past that item and then scroll back
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/helixaril/ExpansionListReproduce
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: