You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's currently no way to change the color of a link in an AttributedString. Sometimes you want to use a link in a context where the default color is illegible. In my case, I’m displaying some text above the user’s wallpaper, which could be anything, and while the text is white, the link is blue and often becomes illegible. I would like to set the color to light blue. In other case, it might make sense to let the user choose the color.
Setting the .foregroundColor attribute on the same range as the link has no effect.
Description
There's currently no way to change the color of a link in an AttributedString. Sometimes you want to use a link in a context where the default color is illegible. In my case, I’m displaying some text above the user’s wallpaper, which could be anything, and while the text is white, the link is blue and often becomes illegible. I would like to set the color to light blue. In other case, it might make sense to let the user choose the color.
Setting the
.foregroundColor
attribute on the same range as the link has no effect.Files
Sample project.zip
The text was updated successfully, but these errors were encountered: