Closed abhikpo closed 6 years ago
styleLinks
- detects and styles regular links in text (not placed in tags). So you need just add .higlighted
support to 'a'
style
let href = "<a href=\"https://www.google.com/\">Google.com</a> href <a href=\"https://www.facebook.com/\">Facebook</a>"
let all = Style.font(.systemFont(ofSize: 20.0)).foregroundColor(.gray)
let a = Style("a").foregroundColor(.green, .normal).foregroundColor(.red, .highlighted)
hrefLink.attributedText = href.style(tags: a)
.styleAll(all)
Hi, href are not working. The following code snippet is an example. Can you look into it where we did the mistake? Also, unable to click Facebook link. If I am displaying as Facebook.com, it is clickable.