Latest 1.0.2
Homepage https://github.com/dokgi88/GranibleLabel
License MIT
Platforms ios 9.0
Authors

titleGraniblelabelFullColor

Designed by yoon

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.

Latest podspec

{
    "name": "GranibleLabel",
    "version": "1.0.2",
    "summary": "Very easy and simple gradation animate Label.",
    "description": "Veeeeeeeeeeeeeeeery easy to use and simple gradation animate Label.",
    "homepage": "https://github.com/dokgi88/GranibleLabel",
    "screenshots": "https://github.com/dokgi88/dokgi88.github.io/blob/master/_images/GranibleLabel/titleGraniblelabelFullColor.png?raw=true",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "dokgi88": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dokgi88/GranibleLabel.git",
        "tag": "1.0.2"
    },
    "swift_versions": "5.0",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "GranibleLabel/Classes/**/*"
}

Pin It on Pinterest

Share This