Closed unixb0y closed 4 years ago
I'm now using the "regex" thing and defining the complete string that I want to highlight as the regex 😅
Not very elegant and error-prone in case that character sequence appears another time somewhere else...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello, Is there any way to mark a specific portion of text as a link for example, without any "clues" in the text itself?
I get a server response which exactly tells me where specific things are and I used NSAttributedString for that before, since I can just specify the range that I got from the server and display that part of the text as e.g. a hyperlink. Somehow, the combination of
UILabel.attributedText
andActiveLabel
doesn't seem to work together (the attributes set on the NSAttributedString are ignored).I would love a method like
addURL(from: Int, to: Int)
/addMention(from: Int, to: Int)
etc.