From 04237990e9fea670a9e6c1b5210cd19e26438abb Mon Sep 17 00:00:00 2001 From: Andrei Misiukevich Date: Fri, 14 Feb 2020 18:58:38 +0300 Subject: [PATCH] fixes https://github.com/xamarin/Xamarin.Forms/issues/9526 --- Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs index 47dca4ee47b..5eda9ac97c2 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs @@ -520,7 +520,7 @@ void UpdateTextColor() Control.TextColor = textColor.ToUIColor(ColorExtensions.Black); #else var alignment = Element.HorizontalTextAlignment.ToNativeTextAlignment(((IVisualElementController)Element).EffectiveFlowDirection); - var textWithColor = new NSAttributedString(Element.Text ?? "", font: Element.ToNSFont(), foregroundColor: textColor.ToNSColor(), paragraphStyle: new NSMutableParagraphStyle() { Alignment = alignment }); + var textWithColor = new NSAttributedString(Element.Text ?? "", font: Element.ToNSFont(), foregroundColor: textColor.ToNSColor(ColorExtensions.Black), paragraphStyle: new NSMutableParagraphStyle() { Alignment = alignment }); textWithColor = textWithColor.AddCharacterSpacing(Element.Text ?? string.Empty, Element.CharacterSpacing); Control.AttributedStringValue = textWithColor; #endif