Handling Links in Text

Episode #478 | 10 minutes | published on February 11, 2021 | Uses Swift-5.3, Xcode-12.4
Subscribers Only
Sometimes our text contains links that should be styled differently and react to taps so a URL can be opened in a web browser. While we can use a UILabel to detect and style links, they don't respond to touches. Let's see how we can leverage UITextView instead to handle links in NSAttribtedStrings.

Nothing yet...

blog comments powered by Disqus