• Stars
    star
    330
  • Rank 127,657 (Top 3 %)
  • Language
    Swift
  • Created over 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CharacterText

UILabel subclass to perform text effects

Blog Post: https://swiftyeti.com/texteffects-with-nslayoutmanager

CharacterText uses NSLayoutManager to position CATextLayers for each glyph in your string. This gives you the power to create some neat text effect using all the attributes of CATextLayer.

CharacterText is inspired from Secret & the new iOS8 autocomplete effect.

Usage

CharacterLabel can be used in place of UILabel.

You can subclass CharacterLabel to then create your own animations. Three examples are provided: FallingLabel, FadingLabel, and MotionLabel.

FallingLabel:

FallingLabel

FadingLabel:

FadingLabel

MotionLabel:

MotionLabel

Objective-C Version: https://github.com/android1989/YetiCharacterLabelExample