AnimatedBlurLabel 1.5.0

AnimatedBlurLabel 1.5.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新发布2016 年 9 月
SPM支持 SPM

Maintained by Mathias Köhnke.



  • Mathias Köhnke

AnimatedBlurLabel

UILabel 的子类,用于动画化文本的模糊和取消模糊。查看示例项目以了解如何使用它。

安装

手动

AnimatedBlurLabel.swift 文件复制到您的 Swift 项目中,将其添加到目标并开始使用。

使用

开始使用的方法是将 AnimatedBlurLabel 作为自定义标签添加到 Storyboard 中。之后,您可以在代码中设置动画持续时间或模糊半径等属性

blurLabel.animationDuration = 1.0
blurLabel.blurRadius = 30.0

为了模糊或取消模糊标签的文本,您只需调用以下方法

func setBlurred(blurred: Bool, animated: Bool, completion: ((finished : Bool) -> Void)?)

作者

Mathias Köhnke @mkoehnke

许可证

AnimatedBlurLabel 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。

近期更改

发布说明可在 此处 找到。