Latest 0.3.0
License MIT
Platforms ios 9.0, requires ARC

CLTypingLabel Language

A lightweight UILabel subclass with character by character typewriter like animation in Swift, super simple to use




  1. Copy and paste CLTypingLabel.swift to your xcode project.


  1. Install the latest release of CocoaPods: gem install cocoapods
  2. Add this line to your Podfile: pod 'CLTypingLabel'
  3. Install the pod: pod install


  1. Change the class of a label from UILabel to CLTypingLabel;

  2. Programmatically set a new String to its text property at runtime, animation would be triggered automatically;

Sample Code

@IBOutlet weak var myTypeWriterLabel: CLTypingLabel!

At runtime, set text of the label will trigger animation automatically:

myTypeWriterLabel.text = "This is a demo of typing label animation..."

Also works on attributedText:

myTypeWriterLabel.attributedText = NSAttributedString(string: "This is an attributed text typing animation...", attributes: attr)

You can pause the typing animation at any time:

myTypeWriterLabel.pauseTyping() //this will pause the typing animation
myTypeWriterLabel.continueTyping() //this will continue paused typing animation

And customize time interval between each character:

myTypeWriterLabel.charInterval = 0.08 //optional, default is 0.1


This code is distributed under the terms and conditions of the MIT license.

Latest podspec

    "name": "CLTypingLabel",
    "version": "0.3.0",
    "summary": "UILabel with character by character typing animation in swift iOS/OSX",
    "description": "iOS/OSX UILabel with character by character typewriter like animation",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Chenglin": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.3.0"
    "platforms": {
        "ios": "9.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/*",
    "pushed_with_swift_version": "4.0"

Pin It on Pinterest

Share This