This Library provides type writer animation for UILabel
of UIKit
.
Drag and drop MMTypingLabel.swift
into you're project.
-
Change the class of a label to
MMTypingLabel
-
Set text property
-
Set interval for typing delay
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()
This code is distributed under the terms and conditions of the MIT license.