/RUSwiftTypewriterLabel

This is a cool little feature which implements setting a NSMutableAttributedString to be set in a label with a cool typewriter animation.

Primary LanguageShellMIT LicenseMIT

RUSwiftTypewriterLabel

CI Status Version License Platform

Demo

To run the example project, clone the repo, and run pod install from the Example directory first.

Or download the project and go to the Example directory and open the RUSwiftTypewriterLabel.xcworkspace workspace file.

Alt Text

Requirements

Installation

RUSwiftTypewriterLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "RUSwiftTypewriterLabel"

or

pod 'RUSwiftTypewriterLabel', '~> 0.2.1'

Author

Ritvik Upadhyaya

License

RUSwiftTypewriterLabel is available under the MIT license. See the LICENSE file for more info.

##Overview This is a cool little feature which implements setting a NSMutableAttributedString to be set in a label. The specified label is set one character at a time (think a typewriter) while maintaining all the attributes of the string. Previously, I looked at the existing libraries/sources for typewriter UI, but none retained the attribute of the mutable string.

It is modified from https://github.com/stefandeclerck/SDUILabelTextAnimation

##Usage

demoLabel.startTyping(mutedString, typeSpeed: 0.2)

or default:

demoLabel.startTyping(mutedString)