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

Commit

Permalink
Fixing issue #15314
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisstromberg committed Feb 8, 2023
1 parent 33dd32a commit b1f7b50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs
Expand Up @@ -263,6 +263,9 @@ void UpdateTextDecorations()
if (!(Control.AttributedStringValue?.Length > 0))
return;
#endif
// If FormattedText is changed after the initial render, it will be removed on either line 285 or line 290.
if(IsTextFormatted && _formatted.Spans?.Any(span => span.TextDecoration > TextDecorations.None))
return;

var textDecorations = Element.TextDecorations;
#if __MOBILE__
Expand Down

0 comments on commit b1f7b50

Please sign in to comment.