Skip to content
Veeeeeeeeeeeeeeeery easy to use and simple gradation animate Label
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Update example of GranibleViewController May 3, 2019
GranibleLabel Update GranibleLabel May 3, 2019
.gitignore Initial commit Apr 26, 2019
.travis.yml Initial commit Apr 26, 2019
GranibleLabel.podspec
LICENSE Initial commit Apr 26, 2019
README.md
_Pods.xcodeproj Initial commit Apr 26, 2019

README.md

titleGraniblelabelFullColor

Designed by yoon


GranibleLabel

Swift Platform License

top left right bottom
top.gif left.gif right.gif bottom.gif
leftTopDiagonal leftBottomDiagonal rightTopDiagonal rightBottomDiagonal
leftTopDiagonal.gif leftBottomDiagonal.gif rightTopDiagonal.gif rightBottomDiagonal.gif

Install

pod 'GranibleLabel'

Example

Up to 4 colors can be set. Up to three colors available in infinity mode.

  • Set no animation normal gradient
/* 
* .bottom, .leftTopDiagonal, etc...
*/ 
let label = GranibleLabel()
label.colors = [UIColor.red, UIColor.orange]
  • Set animation direction
/* 
* direction = .bottom, .leftTopDiagonal, etc...
* animate default = false
*/
label.direction = .top
label.animate = true
  • Set infinity mode
label.direction = .top
label.animate = true
label.infinity = true
  • Set reverse mode
/* 
* autoreverses default = false
*/
label.direction = .top
label.animate = true
label.reverse = true
  • And other settings
/*
* You can use it just like a normal UILabel.
*/
label.text = "label"
label.textAlignment = .center
label.font = .boldSystemFont(ofSize: 10)
label.numberOfLines = 2

License

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

You can’t perform that action at this time.