I have NSAttributed string with links in it and I want to load it inside UILabel. I works fine, however all links are blue Color.
let string = NSMutableAttributedString(attributedString: attributedText)
string.addAttributes([NSForegroundColorAttributeName:linkColor], range: linkRange)
self.attributedText = string
No change to foreground color, setting all other attributes work, like strikethrough style. Just link always stays blue.
NSAttributed string is generated from HTML if that makes any difference.
Ended up doing
Does the job, took a while to figure out. Because UILabel has its own link formatting ended up