Skip to content

Mahdimm/MMTypingLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMTypingLabel

This Library provides type writer animation for UILabel of UIKit.

Installation

Manual

Drag and drop MMTypingLabel.swift into you're project.

Usage

  1. Change the class of a label to MMTypingLabel

  2. Set text property

  3. Set interval for typing delay

Sample Code

let label = MMTypingLabel()
label.text = "hi it would be cool"
// Set constraints

label.didFinishAnimating = { [weak self] in
   print("Finished")
}

You can pause and continue animation with help of these two function

label.pause()

label.continueAnimating()

License

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

About

A type writer implementation via UILabel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages