Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
fixes #9526
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich committed Feb 14, 2020
1 parent 1b4c6e2 commit 76188c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs
Expand Up @@ -514,7 +514,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
Expand Down

0 comments on commit 76188c8

Please sign in to comment.