Latest 0.0.1
Homepage https://github.com/kinhchendev/KCGameLabel
License MIT
Platforms ios 9.0
Authors

Swift framework for label animations

Install

  • Via Cocoapod:

    pod 'KCGameLabel'
  • Add to Project:
    Add ‘KCGameLabel.framework’ to Embedded Binaries in Project->General

Usage

  • Import:

    import KCGameLabel
  • Initialization:

    let lbGame = GameLabel.initGameLabel(WithStyle: .bounce)
    
    lbGame.animatedDuration = 0.4
    lbGame.animatedInterval = 0.45
        lbGame.backgroundColor = .white
        lbGame.frame = CGRect(x: 20, y: 200, width: self.view.frame.size.width - 2*20, height: 100)
        lbGame.setLabelFont(font: UIFont.boldSystemFont(ofSize: 60))
        lbGame.setLabelColor(color: .red)
        self.view.addSubview(lbGame)
  • Change value and it will animate automatically
    lbGame.text = "(count)"

Latest podspec

{
    "name": "KCGameLabel",
    "version": "0.0.1",
    "summary": "Swift framework for label animations",
    "swift_version": "4.0",
    "platforms": {
        "ios": "9.0"
    },
    "description": "- Supported animations: n   Bounce, Faded Zoom, Zoom In-Out, Flip Horizontal, Flip Vertical, Rotate Down, Rotate Up",
    "homepage": "https://github.com/kinhchendev/KCGameLabel",
    "license": "MIT",
    "authors": {
        "Kinh Tran": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kinhchendev/KCGameLabel.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "KCGameLabel/*.{h,m,swift}",
        "Classes",
        "Classes/**/*.{h,m,swift}",
        "Source",
        "KCGameLabel/Source/**/*.{h,m,swift}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This