Change link color?
sergeymild opened this issue · comments
SergeyMild commented
Hi, thanks for great library, but i have a problem i can't change ink color it is always default blue.
even if i make like with
attributedString += text.withLink(.init(string: destination)!)
.withFont(.boldSystemFont(ofSize: 15))
.withTextColor(.green)
it has no effect
Eddie Kaiger commented
@sergeymild I believe that's done on the textView itself via linkTextAttributes
, like so:
textView.linkTextAttributes = [Attribute.textColor(.red)].foundationAttributes
SergeyMild commented
Yes it's works thanks