A UILabel drop-in replacement for iOS that supports interactive hashtags, mentions, URLs, emails, and custom regex patterns.
ActiveLabel.swift is a Swift library that replaces UILabel in iOS apps to add interactive text elements. It automatically detects and makes hashtags, mentions, URLs, and emails tappable, solving the need for custom text parsing and touch handling in labels.
iOS developers building apps with social features, messaging, or content displays that require interactive text elements like tags, mentions, or links.
Developers choose ActiveLabel.swift for its simplicity, drop-in compatibility with UILabel, and robust feature set including custom regex support and performance optimizations, without the overhead of larger text-handling libraries.
UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Works seamlessly as a UILabel replacement, allowing developers to add interactivity with minimal code changes, as shown in the usage examples.
Supports custom colors and tap handlers for hashtags, mentions, URLs, emails, and custom regex patterns, enabling flexible UI design.
Includes batched customization via the customize(block:) method to minimize text container refreshes, improving efficiency in dynamic interfaces.
Simple API with clear documentation, making it quick to set up and use for common interactive text scenarios.
Limited to UIKit-based iOS apps, not natively supporting SwiftUI or cross-platform development without additional bridging code.
Requires iOS 10+ as per the README, which excludes projects targeting older iOS versions without workarounds.
Focuses on interactivity but doesn't enhance UILabel's core text styling, lacking built-in support for advanced attributed string features like dynamic font scaling.
Requires developers to implement all tap handlers manually, which can be cumbersome and error-prone for apps with numerous interactive elements.