Latest 0.0.5
Homepage https://github.com/rwbutler/TypographyKit
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

TypographyKit makes it easy to define typography styles in your iOS app helping you achieve visual consistency in your design as well as supporting Dynamic Type even where using custom fonts.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TypographyKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "TypographyKit"

Usage

Include a TypographyKit.plist as part of your app project (example) in which you define your typography styles.

Define additional UIFontTextStyles within your app matching those defined in your .plist:

extension UIFontTextStyle
{
    static let heading = UIFontTextStyle(rawValue: "heading")
}

Where you would usually set the text on a UILabel e.g.

self.titleLabel.text = "My label text"

Use TypographyKit’s UIKit additions:

self.titleLabel.text("My label text", style: .heading)

Or where your text has been set through IB simply set the UIFontTextStyle programmatically:

self.titleLabel.fontTextStyle = .heading

Your UILabel and UIButton elements will automatically respond to changes in the Dynamic Type setting on iOS on setting a UIFontTextStyle with no further work needed.

Author

Ross Butler

License

TypographyKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TypographyKit",
    "version": "0.0.5",
    "summary": "Visually consistent, accessible type for your iOS app.",
    "description": "Typography Kit allows you to define typography styles for your app so that your design is clear, consistent and compatible with Dynamic Type.",
    "homepage": "https://github.com/rwbutler/TypographyKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "rwbutler": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rwbutler/TypographyKit.git",
        "tag": "0.0.5"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TypographyKit/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This