DHExpandableLabel
DHExpandableLabel is a simple UILabel subclass that shows a tappable link if the content doesn't fit the specified number of lines. If touched, the label will expand to show the entire content.
Install / Use
/learn @mrvandai/DHExpandableLabelREADME
DHExpandableLabel
DHExpandableLabel is a simple UILabel subclass that shows a tappable link if the content doesn't fit the specified number of lines. If touched, the label will expand to show the entire content.

Usage
let label = DHExpandableLabel(frame: rect)
let loremText = "Lorem Ipsum is dummy text of the print and typesetting industry. Lorem Ipsum has been thm Ipsum, Lorem Ipsum is simplyLorem Ipsum is simplyLorem Ipsum is simply"
label.numberOfLines = 2
label.shouldAddSpaceBetweenEllipsisAndMore = true
label.shouldTrimLeftSpace = true
label.delegate = self
label.shouldCollapse = true
label.originAttributedText = NSAttributedString(string: loremText, attributes: attributed)
Installation
Available in Cocoa Pods:
pod 'DHExpandableLabel'
References
License
DHExpandableLabel is available under the MIT license. See the LICENSE file for more info.
Related Skills
product-manager-skills
52PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, run discovery, and coach PM career transitions.
pm
PM Agent Rule This rule is triggered when the user types `@pm` and activates the Product Manager agent persona.
devplan-mcp-server
3MCP server for generating development plans, project roadmaps, and task breakdowns for Claude Code. Turn project ideas into paint-by-numbers implementation plans.
