Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hulsizer/CharacterText


https://github.com/hulsizer/CharacterText

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

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](http://i.imgur.com/0R2iMOp.gif)](https://swiftyeti.com/texteffects-with-nslayoutmanager)

FadingLabel:

[![FadingLabel](http://i.imgur.com/fzUTN4E.gif)](https://swiftyeti.com/texteffects-with-nslayoutmanager)

MotionLabel:

[![MotionLabel](http://i.imgur.com/jGR7PsR.gif)](https://swiftyeti.com/texteffects-with-nslayoutmanager)

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