RUSwiftTypewriterLabel 0.2.1

RUSwiftTypewriterLabel 0.2.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2016
SPMSupports SPM

Maintained by Ritvik Upadhyaya.



  • By
  • Ritvik Upadhyaya

RUSwiftTypewriterLabel

Usage

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

Requirements

Installation

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

pod "RUSwiftTypewriterLabel"

Author

Ritvik Upadhyaya, [email protected]

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.

Usage

startTyping(mutedString, typeSpeed: 0.1,label: demoLabel)

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

8c84ee74cf75bb2c00eaeba612e9dca1c189c2b9