Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/Core/src/Handlers/Label/LabelHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ public static void MapBackground(ILabelHandler handler, ILabel label)
{
handler.UpdateValue(nameof(IViewHandler.ContainerView));

handler.PlatformView?.UpdateBackground(label);
// Gradient sublayers cover UILabel text, so route them to WrapperView; solid colors stay on PlatformView for correct Clip masking.
if (label.Background is GradientPaint)
{
handler.ToPlatform()?.UpdateBackground(label);
}
else
{
handler.PlatformView?.UpdateBackground(label);
}
}

public static void MapText(ILabelHandler handler, ILabel label)
Expand Down
Loading