DHExpandableLabel 1.0.0

DHExpandableLabel 1.0.0

Maintained by Dai Ho V.



Version License Platform Swift Version

DHExpandableLabel

UILabel subclass with "more"/"less" capabilities.

Usage

let label = DHExpandableLabel()

label.numberOfLines = 2

let loremText = "Lorem ipsum dolor ..."

let attributed: [NSAttributedStringKey: Any] = [.font: label.font, .paragraphStyle: style]

label.shouldCollapse = true

label.originAttributedText = NSAttributedString(string: loremText, attributes: attributed)


## Installation

Available in [Cocoa Pods](https://github.com/CocoaPods/CocoaPods):

` pod 'DHExpandableLabel' `

## License

DHExpandableLabel is available under the [MIT license](http://www.opensource.org/licenses/mit-license.php).