DossyTextLabel 📟
A subclass of UILabel reminiscent of Strong Bad's faithful Tandy 400 and MS-DOS of yore.
Requirements
- Swift 3.0
- iOS 8.0+
- Xcode 8.0
Installation
CocoaPods ☕️
You can use CocoaPods to install DossyText by adding it to your Podfile:
pod 'DossyText'Manual 🔧
You can simply add the DossyText.swift file to your project
Usage
To get the full benefits import DossyText wherever you import UIKit:
import UIKit
import DossyTextSimply 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 – @jedmondn – [email protected]
Distributed under the MIT license. See LICENSE for more information.
