I have an NSAttributedString
generated from HTML which includes some links. The attributed string is shown in a UITextView. I wish to apply a different font style f
for simple cases: (without horrible HTML use):
let linkTextAttributes : [String : Any] = [
NSForegroundColorAttributeName: UIColor.red,
NSUnderlineColorAttributeName: UIColor.magenta,
NSUnderlineStyleAttributeName: NSUnderlineStyle.patternSolid.rawValue
]
self.infoText.linkTextAttributes = linkTextAttributes