Giter Site home page Giter Site logo

mohsinalimat / hltrafficlightsindicatorview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pandaape/hltrafficlightsindicatorview

1.0 2.0 0.0 700 KB

交通红绿灯灯加载动效

License: MIT License

Swift 42.75% Ruby 5.25% Objective-C 4.40% Shell 47.60%

hltrafficlightsindicatorview's Introduction

HLTrafficLightsIndicatorView

Version License Platform

Example

Result

Animated gif

Layers

Animated gif

Timeline

Animated gif

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, [email protected]

License

HLTrafficLightsIndicatorView is available under the MIT license. See the LICENSE file for more info.

hltrafficlightsindicatorview's People

Contributors

pandaape avatar

Stargazers

MohsinAli avatar

Watchers

MohsinAli avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.