Latest0.2
Homepagehttps://github.com/Noambaron/ScoreboardLabel
LicenseMIT
Platformsios 8.0, requires ARC
Dependenciespop
Authors

A label that switches texts by animating a flip of each letter – Written in Swift, using POP

Version
License
Platform

Animation

Requirements

  • iOS 8.0+
  • xCode 6+

Example App

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

ScoreboardLabel is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ScoreboardLabel"

Get Started

let font = aFont //any font, any size
let image = anImage //the letter backgroud image
let color = aUIColor

label = ScoreboardLabel(backgroundImage: image! ,text: "TEXT-FROM", flipToText: "TEXT-TO", font:font, textColor:color)

label.interval = Double(0.4) //each letter flip time

label.completionHandler = { (finished:Bool) in
if finished == true {
//label as finished animating
}
}

label.center = view.center

view.addSubview(label)

Start Animating

label.flip(true) //true = flip back and forth between texts. false = flip once from text to text and thats it

Stop Animating

label.stopFlipping() //Will stop animating after finishing current flip

Collaboration

Feel free to collaborate with ideas, issues and/or pull requests.

Author

Noam Bar-on, https://www.linkedin.com/in/noambaron

License

The MIT License (MIT)

Copyright (c) 2015 Noam Bar-on.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


Latest podspec

{
    "name": "ScoreboardLabel",
    "version": "0.2",
    "summary": "A label that switches texts by animating a flip of each letter - Written in Swift, using POP",
    "description": "A label that switches texts by animating a flip of each letter - Written in Swift, using POP.",
    "homepage": "https://github.com/Noambaron/ScoreboardLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Noam bar-on": "https://www.linkedin.com/in/noambaron"
    },
    "social_media_url": "https://www.linkedin.com/in/noambaron",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Noambaron/ScoreboardLabel.git",
        "tag": "0.2"
    },
    "source_files": "ScoreboardLabel/**/*.swift",
    "requires_arc": true,
    "dependencies": {
        "pop": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This