RSScrollingLabel 0.1.0

RSScrollingLabel 0.1.0

Roberto Sartori维护。



  • terrordrummer

RSScrollingLabel

CI Status Version License Platform

描述

RSSrollingLabel example, component is at the center and the four buttons trigger the corresponding text animation.

这是一个简单的UIView,模拟UILabel并允许动画文本。要执行文本动画,只需调用以下函数

func animate(to text: String, direction: Direction)

四种主要方向可用

enum Direction {
        case up, down, left, right
    }

RSScrollLabel还包装以下常见的UILabel属性

  • textAlignment
  • textColor
  • font
  • text(非动画)

示例

要运行示例项目,请克隆存储库,然后首先从Example目录运行pod install命令。

安装

RSScrollingLabel可以通过CocoaPods获取。要安装它,只需将以下行添加到Podfile中

pod 'RSScrollingLabel'

作者

恐怖鼓手,[email protected]

许可证

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