Remove underline on UITextView link
Somehow ".underlineStyle: 0" didn't work for me. so i had to clear the Underline Color and it worked for me.
textView.linkTextAttributes = [.underlineStyle: 0, .underlineColor: UIColor.clear,]
For Swift, it's simply:
textView.linkTextAttributes = [.underlineStyle: 0]