Skip to content

Veeeeeeeeeeeeeeeery easy to use and simple Flashing Label.

License

Notifications You must be signed in to change notification settings

carabina/FlashingLabel

 
 

Repository files navigation

flashinglabel_trans

FlashingLabel

Swift Platform License

flashinglabel_new_white.gif flashinglabel_new_black.gif

Install

pod 'FlashingLabel'

How to use

  • required
baseColor = UIColor.orange
flashingColors = [UIColor.orange.withAlphaComponent(0.5)]
flashingTime = 0.17
startFlashing()
  • init and start flashing
let label = FlashingLabel()
label.baseColor = UIColor.orange
label.flashingColors = [UIColor.orange.withAlphaComponent(0.5)]
label.flashingTime = 0.17
label.text = "HELLO"
label.startFlashing()
  • infinite mode

flashinglabel_infinite.gif

label.flashingColors = [.orange, .purple]
label.isInfinite = true
  • stop flashing
label.stopFlashing()

License

FlashingLabel is available under the MIT license. See the LICENSE file for more info.

About

Veeeeeeeeeeeeeeeery easy to use and simple Flashing Label.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 89.5%
  • Ruby 10.5%