eddiekaiger / SwiftyAttributes

A Swifty API for attributed strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change link color?

sergeymild opened this issue · comments

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

@sergeymild I believe that's done on the textView itself via linkTextAttributes, like so:

textView.linkTextAttributes = [Attribute.textColor(.red)].foundationAttributes

Yes it's works thanks