FlashingLabel 1.0.6

FlashingLabel 1.0.6

dokgi88 维护。




  • 作者
  • dokgi88

flashinglabel_trans

FlashingLabel

Swift Platform License

flashinglabel_new_white.gif flashinglabel_new_black.gif

安装

pod 'FlashingLabel'

如何使用

  • 必需
baseColor = UIColor.orange
flashingColors = [UIColor.orange.withAlphaComponent(0.5)]
flashingTime = 0.17
startFlashing()
  • 初始化并开始闪烁
let label = FlashingLabel()
label.baseColor = UIColor.orange
label.flashingColors = [UIColor.orange.withAlphaComponent(0.5)]
label.flashingTime = 0.17
label.text = "HELLO"
label.startFlashing()
  • 无限模式

flashinglabel_infinite.gif

label.flashingColors = [.orange, .purple]
label.isInfinite = true
  • 停止闪烁
label.stopFlashing()

许可

FlashingLabel 可在 MIT 许可下使用。请参阅 LICENSE 文件获取更多信息。