Latest 0.1.1
Homepage https://github.com/rimh/RimhTypingLetters
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

A simple typing animation for UITextView and UILabel.

Requirements

XCode 9.1, Swift 4.0, iOS 8 or above

Demo

Just simply typing text (no-wrapping).

typing

Typing with word-wrap.

typing_delimiter

Installation

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

pod 'RimhTypingLetters'

Usage

First, you need to import the module.

import RimhTypingLetters

For TextView:

@IBOutlet weak var textview:TypingLetterUITextView!
// You can specific delimiter to wrap the content such as a space.
textview.typeText(message, delimiter: " ", typingSpeedPerChar: 0.05, didResetContent: true) {
            // complete action after finished typing
}
// By default: delimiter = nil (no-wrapping), typingSpeedPerChar = 0.04, didResetContent = true.
textview.typeText(message) {
           // complete action after finished typing
}

For Label:

// Extension function in UILabel is similar to TypingLetterUITextView's function, just only delimiter parameter is not exist. 
label.typeText(message, typingSpeedPerChar: 0.1, didResetContent = true, completeCallback:{
           // complete action after finished typing
}

If you want to customize the function, you can create a subclass.

class MyTextView:TypingLetterUITextView {
    override func updateTypingTextView(_ character: Character) {
        super.updateTypingTextView(character)
    }
}

License

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

Latest podspec

{
    "name": "RimhTypingLetters",
    "version": "0.1.1",
    "summary": "A simple typing animation for UITextView and UILabel.",
    "description": "A simple typing animation for UITextView and UILabel. It is simple use with small codes.",
    "homepage": "https://github.com/rimh/RimhTypingLetters",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Rimh(Ming)": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rimh/RimhTypingLetters.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RimhTypingLetters/Classes/**/*",
    "pushed_with_swift_version": "echo "4.0" > .swift-version"
}

Pin It on Pinterest

Share This