You can change the color of links in text views to anything you want in Swift.
The easiest way to do this is to set the tintColor
of your UITextView
:
textView.tintColor = UIColor.green
You can also do this by setting the link text attributes like so:
textView.linkTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.red]
The Complete iOS App Development Bootcamp
Disclosure: This website may contain affiliate links, meaning when you click the links and make a purchase, we receive a commission.