Latest 0.7.0
Homepage https://github.com/lexrus/LTMorphingLabel
License MIT
Platforms ios 8.0, tvos 9.0, requires ARC
Frameworks UIKit, Foundation, QuartzCore
Authors

Travis
Language
CocoaPods
Carthage compatible
License

A morphing UILabel subclass written in Swift.
The .Scale effect mimicked Apple’s QuickType animation of iOS 8 in WWDC 2014. New morphing effects are available as Swift extensions.

enum LTMorphingEffect: Int, Printable

.Scale – default

LTMorphingLabel

.Evaporate

LTMorphingLabel-Evaporate

.Fall

LTMorphingLabel-Fall

.Pixelate

LTMorphingLabel-Pixelate

.Sparkle

LTMorphingLabel-Sparkle

.Sparkle is built on top of QuartzCore.CAEmitterLayer. There’s also a SpriteKit powered version here.

.Burn

LTMorphingLabel-Burn

.Anvil

LTMorphingLabel-Anvil

Requirements

  1. Xcode 10
  2. iOS 8.0+

Installation

Carthage

  1. Add this line to your Cartfile: github "lexrus/LTMorphingLabel"
  2. Read the official instruction

CocoaPods

  1. Install the latest release of CocoaPods: gem install cocoapods
  2. Add this line to your Podfile: pod 'LTMorphingLabel'
  3. Install the pod: pod install

Usage

  1. Change the class of a label from UILabel to LTMorphingLabel;
  2. Programmatically set a new String to its text property.
  3. To use interactively, call .pause() after changing .text property, and use updateProgress(progress: Float)to update the progress interactively.

Unit tests

Open the project with Xcode then press command + u.

Alternative

Even though this lib was used in
a few products on App Store,
it’s still an experimental project. Frankly, there’re some nice competitors out
there guarantee both compatibility and stability.
And the most outstanding one is
ZCAnimatedLabel.
I’d like to recommend it for production use.

And finally, an Android port.

Third Party Bindings

React Native

You may now use this library with React Native via the module here

Donation

Buy me a coffee? Here is my wallet:

BTC: 3MnMu3Q1UK63dRbwjhwqWSBVLWxy8SPk6b

ETH: 0x2884F4bE2cBA05395EE0EF997a44aA9B90fD2E2A

License

This code is distributed under the terms and conditions of the MIT license.

Latest podspec

{
    "name": "LTMorphingLabel",
    "version": "0.7.0",
    "summary": "Graceful morphing effects for UILabel written in Swift.",
    "description": "A morphing UILabel subclass written in Swift.nThe .Scale effect mimicked Apple's QuickType animation of iOSn8 in WWDC 2014. New morphing effects are available asnSwift extensions.",
    "homepage": "https://github.com/lexrus/LTMorphingLabel",
    "screenshots": [
        "https://cloud.githubusercontent.com/assets/219689/3491822/96bf5de6-059d-11e4-9826-a6f82025d1af.gif",
        "https://cloud.githubusercontent.com/assets/219689/3491838/ffc5aff2-059d-11e4-970c-6e2d7664785a.gif",
        "https://cloud.githubusercontent.com/assets/219689/3491840/173c2238-059e-11e4-9b33-dcd21edae9e2.gif",
        "https://cloud.githubusercontent.com/assets/219689/3491845/29bb0f8c-059e-11e4-9ef8-de56bec1baba.gif",
        "https://cloud.githubusercontent.com/assets/219689/3508789/31e9fafe-0690-11e4-9a76-ba3ef45eb53a.gif",
        "https://cloud.githubusercontent.com/assets/219689/3594949/815cd3e8-0caa-11e4-9738-278a9c959478.gif"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Lex Tang": "[email protected]"
    },
    "social_media_url": "https://twitter.com/lexrus",
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/lexrus/LTMorphingLabel.git",
        "tag": "0.7.0"
    },
    "source_files": "LTMorphingLabel/*.{h,swift}",
    "resources": "LTMorphingLabel/Particles/*.png",
    "frameworks": [
        "UIKit",
        "Foundation",
        "QuartzCore"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This