Give UITextView a clickable URL link
问题 Hi I've been on this problem for a while now, I read a couple of posts already an I can't understand how to make a clickable UITextView that sends on internet. Here is my code: func transformText(text: String, underlined: Bool, linkURL: String) -> NSAttributedString { let textRange = NSMakeRange(0, text.characters.count) let attributedText = NSMutableAttributedString(string: text) if underlined{ attributedText.addAttribute(NSUnderlineStyleAttributeName , value: NSUnderlineStyle.styleSingle