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

Commit

Permalink
Fixed the Placeholder Entry color issue on iOS (#11429)
Browse files Browse the repository at this point in the history
fixes #11425
  • Loading branch information
jsuarezruiz committed Jul 28, 2020
1 parent 5754d1a commit eeb70f8
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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++)
Expand Down

0 comments on commit eeb70f8

Please sign in to comment.