Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. STULabel

STULabel

NOASSERTIONObjective-C++

A high-performance iOS framework for text layout and rendering, offering a faster and more flexible alternative to UILabel and UITextView.

GitHubGitHub
139 stars29 forks0 contributors

What is STULabel?

STULabel is an open-source iOS framework that provides a high-performance label view and text layout API for Swift and Objective-C. It solves performance bottlenecks in text rendering by offering faster layout, asynchronous rendering, and advanced features like flexible truncation and hyperlink support, making it a robust alternative to UILabel and UITextView.

Target Audience

iOS developers building apps with complex text display needs, such as social media clients, readers, or any interface requiring efficient multi-line text rendering with custom styling.

Value Proposition

Developers choose STULabel for its significant performance improvements over standard UIKit components, its flexible API for advanced text layout, and features like async rendering and customizable truncation that are not available in UILabel or UITextView.

Overview

A faster and more flexible label view for iOS

Use Cases

Best For

  • Improving scrolling performance in table views with many text cells
  • Implementing custom text truncation with interactive 'read more' links
  • Displaying multi-paragraph text with different truncation scopes in a single view
  • Building interfaces requiring precise vertical alignment and baseline control
  • Adding hyperlinks with full UIDragInteraction support to labels
  • Optimizing text rendering for languages with complex scripts like Arabic or Hindi

Not Ideal For

  • Projects heavily dependent on Xcode's Interface Builder for UI design, as STULabel lacks native IB support and requires code-based setup.
  • Apps requiring built-in text selection or automatic URL detection, since STULabel currently doesn't support these features out of the box.
  • Teams using self-sizing UITableView/UICollectionView cells without wanting to override systemLayoutSizeFitting methods, due to Auto Layout limitations.

Pros & Cons

Pros

Blazing Fast Performance

Benchmarks in the demo app show STULabel is several times faster than UILabel and UITextView, thanks to aggressive caching and efficient text scaling techniques that reduce layout overhead.

Async Rendering Support

Supports asynchronous layout and rendering, allowing text processing on background threads to maintain smooth UI performance, especially beneficial for scrolling lists with complex scripts.

Advanced Truncation Features

Offers customizable truncation tokens and multiple truncation scopes, enabling interactive elements like 'tap to read more' links within truncated text, as demonstrated in the demo app.

Precise Text Control

Provides fine-grained control over vertical alignment, baseline positioning, and content insets, with accurate handling of complex scripts and fonts, unlike UILabel's inconsistent behavior.

Cons

No Interface Builder Support

Cannot be configured visually in Xcode's Interface Builder due to IBInspectable limitations, requiring all setup and styling to be done in code, which increases development time for UI-heavy projects.

Auto Layout Workarounds Needed

Has limitations with UIKit's systemLayoutSizeFitting for self-sizing cells, necessitating custom overrides in UITableViewCell or UICollectionViewCell, as admitted in the README.

Missing Standard Features

Lacks text selection, automatic link detection (like UITextView's dataDetectorTypes), and support for some Text Kit attributes, making it less feature-complete for general use cases.

Frequently Asked Questions

Quick Stats

Stars139
Forks29
Contributors0
Open Issues3
Last commit11 months ago
CreatedSince 2018

Tags

#auto-layout#label#ios#core-text#objective-c#cpp17#ui-framework#async-rendering#typography#text#swift#text-rendering#ui-performance

Built With

X
Xcode
O
Objective-C
C
CocoaPods
S
Swift
C
Core Text

Included in

iOS51.7k
Auto-fetched 1 day ago

Related Projects

TTTAttributedLabelTTTAttributedLabel

A drop-in replacement for UILabel that supports attributes, data detectors, links, and more

Stars8,715
Forks1,695
Last commit1 year ago
LTMorphingLabelLTMorphingLabel

[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.

Stars8,149
Forks779
Last commit2 months ago
ActiveLabel.swiftActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift

Stars4,608
Forks681
Last commit2 years ago
ZCAnimatedLabelZCAnimatedLabel

UILabel replacement with fine-grain appear/disappear animation

Stars2,270
Forks215
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub