
This video is only available to subscribers. Start a subscription today to get access to this and 477 other videos.
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.
This episode is part of a series: Layout in Code.