xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Collection View does not support rtl on ios #8759

Open motasemloubani91 opened 4 years ago

motasemloubani91 commented 4 years ago

Collection View does not support RTL on ios if it horizontal or multi columns

Steps to Reproduce

  1. Create collection view and set it to Horizontal mode or add extra columns grid
  2. observe the result

Expected Behavior

support RTL

Actual Behavior

does not support RTL

Reproduction

You can use the HeaderFooterGridHorizontal.xaml to test this

Just set the CV in there to RTL

<CollectionView FlowDirection="RightToLeft" Grid.Row="1" x:Name="CollectionView">
tomerdomshlak commented 4 years ago

I've managed to work around it this way:

In case the current device is iOS and the flow direction is right to left - set the CollectionView's RotationY to 180, and each of it's child elements RotationY to 180 as well.

I'm still waiting for a fix in the framework though.

Elashi commented 3 years ago

In iOS, to make your application Right To Left , you have to make few changes as documented here.

There are a lot of bugs but the basic Right To Left functionality works.