TTTAttributedLabel - codepath/ios_guides GitHub Wiki
TTTAttributedLabel
Note: TTTAttributedLabel has had no release since 2.0.0 (May 2016) and is effectively unmaintained. For new code, prefer a non-editable
UITextView(which supports tappable links viadataDetectorTypesand attributed text) or SwiftUI'sTextwith Markdown links. The notes below are kept for legacy reference.
When the time comes to add clickable links to your app, you will quickly find that both UILabel and UITextField APIs just don't quite get the job done. UILabels offer nice formatting options and can display links added to attributed text, but do not support clickable links. UITextViews do support clickable links as well as auto link detection, but lack the formatting options that make UILabels so useful and the whole text view becomes clickable, not just the linked text. Thankfully, there is TTTAttributedLabel, a CocoaPod silver bullet that adds awesome link handling to the trusty and reliable label.