[iOS] CollectionView as root element in ContentPage makes top item sticky #27611
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
area-controls-label
Label, Span
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
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
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-06.at.23.11.54.mp4
If you have a CollectionView as the root element on a page, and it has a DataTemplate that is nested in a another type like
Grid
orStackLayout
, the top most cells contents will stay sticky at the top of the view when scrolling instead of going off screen.If the Page is wrapped in another view (NavigationView, Shell), it doesn't happen.
I tried with CollectionViewHandler2 and it did the same thing.
I could not get it to reproduce in Catalyst.
It did work in iOS with .NET 8.
Steps to Reproduce
Run the sample
Link to public reproduction project repository
https://github.com/drasticactions/MauiRepoRedux/tree/collectionview-break
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
Wrap the page in a NavigationPage or use Shell
Relevant log output
The text was updated successfully, but these errors were encountered: