Skip to content

A subclass of UILabel reminiscent of Strong Bad's faithful Tandy 400.

License

Notifications You must be signed in to change notification settings

joeynelson42/DossyTextLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DossyTextLabel 📟

A subclass of UILabel reminiscent of Strong Bad's faithful Tandy 400 and MS-DOS of yore.

Installation

Manual (read: Easy)

You can simply add the DossyText.swift file to your project

CocoaPods (read: Overkill)

You can use CocoaPods to install DossyText by adding it to your Podfile:

pod 'DossyText'

Usage

Simply create an instance of DossyTextLabel and add it to your view hierarchy however you would like:

let dossyLabel = DossyTextLabel()

Modify it as you would any UILabel:

dossyLabel.textColor = UIColor.cyan
dossyLabel.numberOfLines = 0
dossyLabel.lineBreakMode = .byWordWrapping

...and type away! ⌨️:

dossyLabel.type("Hello world!\nHow are you today?")

More granular modifications

Adjust the speed of the typing by changing millisecondsPerLetter. 70 is a pretty good place to start 🏃🏼.

blinksWhileIdle -- When the typing ends the blinking animation will (or will not) automatically start.

Meta(l!!! 🎸🎸🎸)

Joey Nelson – @jedmondnjoeyedmondnelson@gmail.com

Distributed under the MIT license. See LICENSE for more information.