更温和 0.1.0

Gentler 0.1.0

vladaccess 维护。



Gentler 0.1.0

  • 作者:
  • vladaccess

更温和

渐变动画

CI Status Version License Platform

示例

override func viewDidLoad() {
  super.viewDidLoad()
  setUpLbl()
  let gentler = GentlerView()
  gentler.frame = view.bounds
  gentler.animationDuration = 3
  gentler.startGentlePoint = .top
  gentler.endGentlePoint = .bottom
  gentler.setColors([UIColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1.0),
                   UIColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1.0),
                   UIColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1.0),
                   UIColor(red: 32/255, green: 76/255, blue: 255/255, alpha: 1.0),
                   UIColor(red: 32/255, green: 158/255, blue: 255/255, alpha: 1.0),
                   UIColor(red: 90/255, green: 120/255, blue: 127/255, alpha: 1.0),
                   UIColor(red: 58/255, green: 255/255, blue: 217/255, alpha: 1.0)])
  gentler.startAnimate()
  self.view.insertSubview(gentler, at: 0)
}

需求

Swift 4 编写。iOS 8.0+ 需要

安装

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

pod 'Gentler', :git => 'https://github.com/vladaccess/Gentler.git'

作者

vladaccess, [email protected]

许可证

Gentler compatibility: MIT许可证。参见LICENSE文件以获取更多信息。