psharanda / Atributika

Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement.
MIT License
1.45k stars 155 forks source link

.foregroundColor with .highlighted attribute doesn't respect color property #126

Closed divyeshmakwana96 closed 1 year ago

divyeshmakwana96 commented 4 years ago

When I use .normal StyleType it works as expected, but by setting .highlighted causes it to change to "all" foreground color

Below is my code for the more tag: let more = Style("more").font(Font.UI.Assessment.highlightedText) .underlineStyle(.single) .foregroundColor(Color.UI.tintColor, .highlighted)

psharanda commented 4 years ago

Hi @divyeshmakwana96 , Could you provide more details and full code example?