Skip to content

A custom UILabel that fades away the end of your text when text is too large to fit within the label's frame.

License

Notifications You must be signed in to change notification settings

donggyushin/DGFadingLabel

Repository files navigation

DGFadingLabel

A custom UILabel that fades away the end of your text when text is too large to fit within the label's frame.

Requirements

  • iOS 12.0+
  • Swift 5.5+
  • Xcode 10.0+

Installation

SPM

File > Add Packages > https://github.com/donggyushin/DGFadingLabel

CocoaPod

pod 'DGFadingLabel', :git => 'https://github.com/donggyushin/DGFadingLabel.git'

Usage

// Usage is same with normal UILabel

let label = DGFadingLabel()
label.text = "Long enough textLong enough textLong enough textLong enough textLong enough textLong enough textLong enough text"

About

A custom UILabel that fades away the end of your text when text is too large to fit within the label's frame.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published