Skip to content

Graceful morphing effects for UILabel written in Swift.

License

Notifications You must be signed in to change notification settings

zhanghengios/LTMorphingLabel

Repository files navigation

LTMorphingLabel

Yet another learning-by-doing Swift project cloning the original Morphing Label of iOS 8 introduced in WWDC 2014. It's easy to customize new morphing effects(see .EvaporateAndFade and .FallDownAndFade).

Demo:

LTMorphingLabel

And this is the ad on Dribbble

Dribbble shot

TODOs & Known issues

  • Improve diff performance
  • Text kerning
  • Align to pixel
  • Text shadow
  • Multiline
  • How to fade in/out Emoji?
  • .FallDownAndFade is buggy
  • Delegates or callback closures

Usage

  1. Copy LTMorphingLabel folder to your iOS 8 project;
  2. Change the class of a label from UILabel to LTMorphingLabel;
  3. Programatically set a new String to its text property.

Unit tests

Open the project with Xcode 6 then press command + u.

Contacts

Follow Lex Tang (@lexrus on Twitter)

License

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

About

Graceful morphing effects for UILabel written in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.7%
  • Ruby 2.5%
  • C++ 0.8%