In RTL , Label text alignment is left only in iOS, it's working fine in android.
if the Label
Text alignment should be align from Right.
Text is aligned left.
Platform Target Frameworks:
Affected Devices: iOS Devices
Yes, I am also having this issue. It happens only when the label has Arabic text AND the device locale is a non-RTL locale like English AND the label has multi line text. Single line labels are correctly displayed on iOS.
Minimum reproduction repo.
If:
Device locale or App local is English (and probably any other LTR locale)
And
The Label HorizontalTextAlignment is Start and FlowDirection is RTL
And
Label text is Arabic and long enough to be multiple lines
this bug happens
RtlLabelIosBug.zip
This bug happens after the released version of Xamarin.Forms(4.2.0.910310).
Now going to release Xamarin Forms 4.5 (three breaking releases). still the bug is open.
At the end of April 2020 apple development community going to stop accepting submissions of apps that use UIWebView APIs . in the Xamarin Forms 4.5 resolving this issue, but we can't upgrade to Xamarin Forms 4.5 because still the Arabic misalignment bug is open. Now my app developmental process is going to be source stopping stage. When can we expect the resolution ??
@Cloudtrackers @AmrAlSayed0 I have a solution. I will do some more checks and will submit PR today
@Cloudtrackers @AmrAlSayed0 Here is a workaround with custom label renderer while I'm preparing PR
RtlLabelIosBug.zip
This bug is still there, I'm using Xamarin.Forms 4.5.0.530
@darrabam Fix has not been reviewed and merged yet
This should be fixed!
Most helpful comment
@Cloudtrackers @AmrAlSayed0 Here is a workaround with custom label renderer while I'm preparing PR
RtlLabelIosBug.zip