欢迎光临
我们一直在努力

交通红绿灯加载动效

建站超值云服务器,限时71元/月

交通红绿灯加载动效

项目介绍:

HLTrafficLightsIndicatorView

Version
License
Platform

Source Code

HLTrafficLightsIndicatorView

Example

Result

图片描述

Layers

图片描述

Timeline

图片描述

Requirements

  • Swift 3.0

  • iOS 8.0+

  • Xcode 8.0

Installation

HLTrafficLightsIndicatorView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "HLTrafficLightsIndicatorView"

Usage example

Inited from pure code :

let view = HLTrafficLightsIndicatorView(frame: CGRect(x: 100, y: 100, width: 200, height: 200))
        
self.view.addSubview(view)
        

Customization Properties


open var topRingColor        = UIColor.red
open var centerRingColor     = UIColor(red: 255/255, green: 192/255, blue: 1/255, alpha: 1)
open var bottomRingColor     = UIColor(red: 18/255, green: 222/255, blue: 125/255, alpha: 1)

open var duration: Double = 1.2 

TODO

The runway layer need enable spring animation.

Author

pandaape, whailong2010@gmail.com

License

HLTrafficLightsIndicatorView is available under the MIT license. See the LICENSE file for more info.
图片描述

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 交通红绿灯加载动效
分享到: 更多 (0)