[iOS] Selected items are not highlighted in the UI during the initial loading when using MultiSelection in the CollectionView. #26943
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/iOS 🍎
t/bug
Something isn't working
Milestone
Description
In .NET MAUI, on the iOS platform, when the CollectionView is initialized with Items 1 and Items 2 pre-selected, the selection is applied in the model, but these items are not visually highlighted with a background color to indicate they are selected.
Note: Since this issue has not been reproduced in either the sandbox sample or the HostApp sample, the initial case is working properly. However, when dynamically clearing and adding selected items, the selection is not reflected in the UI on iOS.
While addressing this issue, please enable the test case: CollectionViewUITests.MultipleBoundSelection, and ensure that all scenarios work as expected.
In iOS,
Screen.Recording.2025-01-03.at.4.53.26.PM.mov
In android,
Screen.Recording.2025-01-03.at.4.26.44.PM.mov
Steps to Reproduce
Expected Behavior:
When Items 1 and Items 2 are pre-selected in the CollectionView, they should appear visually highlighted, with their background color changed to indicate their selected state.
Actual Behavior:
Items 1 and Items 2 are pre-selected, but they do not visually appear highlighted with a background color.
Link to public reproduction project repository
No response
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
9.0.21 SR2.1
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: