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

[Bug] macOS: 4.4->4.5 regression, labels are invisible (same TextColor as background) #9589

Merged
merged 1 commit into from Feb 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs
Expand Up @@ -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
Expand Down