Latest 0.1.0
Homepage https://github.com/jpteti/JCECustomDynamicType
License MIT
Platforms ios 7.0, requires ARC
Authors

JCECustomDynamicType is a small wrapper for the iOS 7 dynamic type feature that provides the font size for a font style based on the user’s dynamic type setting:

CGFloat fontSize = [[JCECustomDynamicType sharedInstance] fontPointSizeForTextStyle:UIFontTextStyleSubheadline];
UIFont *avenirMedium = [UIFont fontWithName:@"AvenirNext-Medium" size:fontSize];

and allows you to define a custom font:

[[JCECustomDynamicType sharedInstance] setHeadlineFontName:@"AvenirNext-DemiBold"];
UIFont *avenirDemiBold = [[JCECustomDynamicType sharedInstance] customFontForTextStyle:UIFontTextStyleHeadline];

It’s pretty simple, so I’d encourage you to have a look. And don’t hesitate to open an issue or, even better, a pull request.

Version
Platform

Requirements

Requires iOS 7.0 or greater

Installation

JCECustomDynamicType is available through CocoaPods; to install
it simply add the following line to your Podfile:

pod "JCECustomDynamicType"

Author

J-P Teti, [email protected]

License

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

Latest podspec

{
    "name": "JCECustomDynamicType",
    "version": "0.1.0",
    "summary": "Extends iOS dynamic type to provide font sizes and custom fonts.",
    "homepage": "https://github.com/jpteti/JCECustomDynamicType",
    "license": "MIT",
    "authors": {
        "J-P Teti": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jpteti/JCECustomDynamicType.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Classes"
}

Pin It on Pinterest

Share This