diff --git a/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs b/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs index 33e59ef3ab5..ec6febb332f 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/FormattedStringExtensions.cs @@ -101,13 +101,16 @@ internal static NSAttributedString ToAttributed(this Span span, BindableObject o else targetFont = span.ToNSFont(); #endif - var fgcolor = span.TextColor; + if (fgcolor.IsDefault) fgcolor = defaultForegroundColor; + + if (owner is Entry && !fgcolor.IsDefault) + fgcolor = defaultForegroundColor; + if (fgcolor.IsDefault) fgcolor = ColorExtensions.LabelColor.ToColor(); - #if __MOBILE__ UIColor spanFgColor; UIColor spanBgColor; @@ -146,6 +149,7 @@ internal static NSAttributedString ToAttributed(this Span span, BindableObject o { if (formattedString == null) return null; + var attributed = new NSMutableAttributedString(); for (int i = 0; i < formattedString.Spans.Count; i++)