A UILabel that does true animation of attributed text.
It animates all text attributes that are possible to animate, unlike CATextLayer that animates only font and color.
It also has a great support of multiline text animations while keeping almost all the benefits of being UILabel.
It uses CoreText text rendering instead of CoreGraphics text rendering of CATextLayer. That makes the text to look the same by advancement and line height as the text in regular UILabel.
It is a great and simple building block for UI which implements material design.
You can use either LKLabel or LKLabelLayer, both support implicitly animatable text change.
When the layer is hosted by LKLabel, animations of text during bounds change are more stable.
Animating text change in LKLabel can be something like this:
A
UILabel
that does true animation of attributed text.It animates all text attributes that are possible to animate, unlike
CATextLayer
that animates only font and color.It also has a great support of multiline text animations while keeping almost all the benefits of being
UILabel
.It uses CoreText text rendering instead of CoreGraphics text rendering of
CATextLayer
. That makes the text to look the same by advancement and line height as the text in regularUILabel
.It is a great and simple building block for UI which implements material design.
Features
Requirements
Installation >>
instructions
<<Usage
You can use either
LKLabel
orLKLabelLayer
, both support implicitly animatable text change. When the layer is hosted byLKLabel
, animations of text during bounds change are more stable.Animating text change in
LKLabel
can be something like this:Animating text change in
LKLabelLayer
can be something like this:License
LabelKit is released under the Simplified BSD license. See LICENSE for details.