From the course: .NET 9 Maui: Enhanced Features for Cross-Platform Development

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

CollectionView/CarouselView for Apple devices

CollectionView/CarouselView for Apple devices

- [Person] In the "What's New in .NET MAUI" for .NET 9 documentation, there's a mention of two new handlers for the "CollectionView" and "CarouselView" on the iOS and macOS platforms. The documentation is unclear on exactly what these are for, but they list performance and stability improvements. I went through the code changes of MAUI to get a little more information on this. There have been numerous complaints in different versions of MAUI about the performance issues with these controls, but I did find what appears to be the real motivation. In MAUI backlog item 23613, it covers the change being made. The title of this item is "Modernize iOS 'CollectionView' Implementation." The item goes on to say that "CollectionView" implementation was originally based on "UICollectionView's" APIs on iOS and Mac Catalyst, however, it was built using a custom subclass of the "UICollectionViewFlowLayout." While there's nothing inherently wrong with this, there are newer APIs intended to make many…

Contents