If a CollectionView resides inside a view that is set to IsVisible="False" and the CollectionView is in a Grid with a row definition of * then it crashes on iOS and MacCatalyst when items are added to the collection.
It works fine on Windows and Android.
Steps to Reproduce
Clone the attached project
Run the solution on iOS or MacCatalyst
Wait a few seconds for some items to be added to the collection
Observe the crash
Run the solution in Windows or Android and wait a few seconds
Observe it works
On the MainPage.xaml set the IsVisible to True on View2
Run the solution on iOS or MacCatalyst
Wait a few seconds and observe it working
Or... revert the IsVisible back to False and change the row definition in View2.xaml from * to Auto
Run the solution on iOS or MacCatalyst and observe it working
Description
If a CollectionView resides inside a view that is set to IsVisible="False" and the CollectionView is in a Grid with a row definition of * then it crashes on iOS and MacCatalyst when items are added to the collection. It works fine on Windows and Android.
Steps to Reproduce
Link to public reproduction project repository
https://bitbucket.org/KeithBoynton/view-not-visible-crash/src/master/
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
No workaround found
Relevant log output
No response