# optonaut/ActiveLabel.swift

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

Repository: https://github.com/optonaut/ActiveLabel.swift
Canonical: https://ross.abutalabs.com/products/activelabelswift
Language: Swift
License: MIT
License Family: permissive
Topics: uilabel, swift, activelabel, twitter
Last push: 2023-10-27T10:15:57+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4017, "days_push": 1041, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4603, forks 676 (observed 2026-08-28T04:08:54.880278+00:00)

## What it is
ActiveLabel is a Swift UILabel drop-in replacement that detects and makes interactive Hashtags, Mentions, URLs, Emails, and custom regex patterns. It is lightweight, customizable, and distributed via CocoaPods and Carthage for iOS apps.

## Use cases
- make hashtags and mentions tappable in an iOS label
- detect and highlight URLs in UILabel text
- add custom regex-based tappable text patterns in Swift
- build a Twitter-like social feed UI on iOS
- handle tap events on links inside a label

## When to choose
- you need a UILabel replacement with interactive hashtags, mentions, links, or emails on iOS
- you want lightweight, well-tested link detection with custom regex support
- you want tap handlers for specific text elements in a label

## When to avoid
- you need rich attributed text editing rather than a read-only label
- your project targets platforms other than iOS or uses Objective-C only
- you need a full text view with link previews or long-press menus

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, parser
- domain: mobile-development, frontend, social-media
- platform: -
- tags: uilabel, hashtags, mentions, url-detection, drop-in-replacement, cocoapods, carthage, ios, swift, mobile

## Member repositories
- optonaut/ActiveLabel.swift (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:54.880278+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:46.352772+00:00, confidence not recorded.
  - readme: https://github.com/optonaut/ActiveLabel.swift (fetched 2026-08-28T04:08:54.880278+00:00, sha 6b2e00583d76)
- Data as of 2026-08-30T08:39:29.467469+00:00.
