[Bug] iOS Crash GroupFooterTemplate on CollectionView with Grouping #15393
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/try-latest-version
Please try to reproduce the potential issue on the latest public version
t/bug
Something isn't working
Description
Having a CollectionView with IsGrouped=True and add the GroupFooterTemplate with any Templatel that has a visibility binding or a dynamic changing makes it crash with the folllowing error:
An error occurred: 'Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: UICollectionView (<UICollectionView 0x114fe0000>) is stuck in its update/layout loop. This can happen for various reasons, including self-sizing views whose preferred attributes are not returning a consistent size. To debug this issue, check the Console app for logs in the "UICollectionViewRecursion" category. In particular, look for messages about layout invalidations, or changes to properties like contentOffset (bounds.origin), bounds.size, frame, etc. Native stack trace:
I was only able to reproduce it on certain iOS devices (not iPhone 6 SE, but yes on iPhone 12 Pro Max and iPhone 14 Pro Max). Couldn't reproduce it on any simulator.
Setting a HeightRequest does not fix it.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/dotnet/maui-samples/tree/main
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: