Latest 0.1.0
Homepage https://github.com/joeynelson42/DossyTextLabel
License MIT
Platforms ios 10.0
Authors

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 DossyText

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 – @jedmondn[email protected]

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

Latest podspec

{
    "name": "DossyText",
    "version": "0.1.0",
    "summary": "A subclass of UILabel reminiscent of Strong Bads Tandy 400",
    "description": "A subclass of UILabel that allows for auto-typing and blinking, similar to MS-DOS.",
    "homepage": "https://github.com/joeynelson42/DossyTextLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Joey Nelson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/joeynelson42/DossyTextLabel.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "DossyText/DossyText.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This