Description
https://developer.apple.com/documentation/uikit/uiscrollview/1619421-scrollstotop
The ScrollsToTop property works as expected for ScrollViews but not CollectionViews
I tried adding the following, but it still did not work:
Microsoft.Maui.Controls.Handlers.Items.CollectionViewHandler.Mapper.AppendToMapping("ScrollsToTop", (h, v) =>
{
var uiView = h.PlatformView.Subviews.FirstOrDefault(x => x is UICollectionView);
if (uiView is UICollectionView collectionView)
{
collectionView.ScrollsToTop = true;
}
});
Steps to Reproduce
- Scroll down on a CollectionView in iOS
- Tap the status bar
- The CollectionView should scroll to the top but it does not
Link to public reproduction project repository
https://github.com/kklose23/maui-uicollectionview-scrollstotop
Version with bug
8.0.5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17
Did you find any workaround?
No
Relevant log output
No response
Description
https://developer.apple.com/documentation/uikit/uiscrollview/1619421-scrollstotop
The
ScrollsToTopproperty works as expected forScrollViewsbut notCollectionViewsI tried adding the following, but it still did not work:
Steps to Reproduce
Link to public reproduction project repository
https://github.com/kklose23/maui-uicollectionview-scrollstotop
Version with bug
8.0.5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17
Did you find any workaround?
No
Relevant log output
No response