Vertical orientation works fine, but horizontal crashes both during hot reload, and upon rerun.
Unhandled Exception:
System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
Parameter name: destinationArray
at System.Array.Copy (System.Array sourceArray, System.Int32 sourceIndex, System.Array destinationArray, System.Int32 destinationIndex, System.Int32 length) [0x000cb] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System/Array.cs:600
at System.Array.CopyTo (System.Array array, System.Int32 index) [0x00017] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corert/src/System.Private.CoreLib/src/System/Array.cs:144
at Xamarin.Forms.Platform.iOS.GridViewLayout.LayoutAttributesForElementsInRect (CoreGraphics.CGRect rect) [0x000c6] in D:\agent\1\s\Xamarin.Forms.Platform.iOS\CollectionView\GridViewLayout.cs:134
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],
Description
Vertical orientation works fine, but horizontal crashes both during hot reload, and upon rerun.
Basic Information
Environment
https://gist.github.com/davidortinau/75dfcee9bc8281af454ad890fda34de0
Screenshots
Vertical:
Horizontal:
Reproduction Link
https://github.com/davidortinau/Xappy/blob/main/Xappy/Xappy/Content/ControlGallery/IndexPage.xaml#L30