GithubHelp home page GithubHelp logo

livelabel's Introduction

LiveLabel

Gradient glow UILabel and Lyric UILabel for iOS(Build with XCode8.0 beta and written in Swift 3.0)

Overview

UILabel for shimmer and lyric effect

Basic usage

Import LiveLabel.swift and LyricLabel.swift into you project first.

Demo Overview

  // LyricLabel Usage
  lyricLabel.color = UIColor.blue()
  let timer = Timer.scheduledTimer(timeInterval: 1.0/40.0, target: self, selector: #selector(update), userInfo: nil, repeats: true);
  timer.fire()
  
  // LiveLabel Usage 
  liveLabel.fromColor = UIColor.init(netHex: 0x00C9FF).cgColor // Here is an entension init method for UIColor from LiveLabel.swift
  liveLabel.toColor = UIColor.init(netHex: 0x92FE9D).cgColor // Here is an entension init method for UIColor from LiveLabel.swift
  liveLabel.setAnimationEnabled(true)
  ...
    
  /**
      Update lyric progress(Only one line support)
  */
  func update(){
      lyricLabel.progress += 1
      if lyricLabel.progress > 100 {
        lyricLabel.progress = 1
      }
  }

##requirement XCode 8.0

##Installation Download or clone this repo and import LiveLable.swift & LyricLable.swift and you are ready to go.

##TODO Objective-C implemention

##License MIT

livelabel's People

Contributors

jcao-ai avatar

Watchers

 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.