Latest 1.0.2
Homepage https://github.com/jfuellert/JFFontObserver
License MIT
Platforms ios 6.0, osx 10.11, requires ARC
Authors

JFFontObserver is used to update fonts and / or UI when a user changes their device font. It uses a simple observer approach to run font and / or UI update blocks.

alt tag

Purpose

The main purpose of this software is to provide developers with a simple way to add non-intrusive dynamic font support for applications.

Installation

Install via CocoaPods
Add the following line to your .podfile

pod 'JFFontObserver'

Support

IOS

Earliest tested and supported build and deployment target – iOS 6.0.
Latest tested and supported build and deployment target – iOS 9.0.

ARC Compatibility

JFFontObserver is built from ARC and is ARC-only compatible.

Usage

JFFontObserver initialization

Simply import the font observer class.

#import <JFFontObserver/JFFontObserver.h>

JFFontObserver usage

Add anything that needs updating to a font update block and it will be called upon system font size changes and, optionally, right away.

typeof(self) __weak weakSelf = self;
[JFFontObserver addObserver:self fontUpdateBlock:^{

    weakSelf.label.font = [UIFont preferredFontForTextStyle:UIFontTextStyleBody];

} updateImmediatly:YES];

Latest podspec

{
    "name": "JFFontObserver",
    "version": "1.0.2",
    "summary": "JFFontObserver is used to update fonts and / or UI when a user changes their device font.",
    "description": "JFFontObserver is used to update fonts and / or UI when a user changes their device font. It uses a simple observer approach to run font and / or UI update blocks.",
    "homepage": "https://github.com/jfuellert/JFFontObserver",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "jfuellert": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jfuellert/JFFontObserver.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "6.0",
        "osx": "10.11"
    },
    "requires_arc": true,
    "source_files": "JFFontObserver/JFFontObserver/**/*.{h,m}",
    "public_header_files": "JFFontObserver/JFFontObserver/**/*.{h}"
}

Pin It on Pinterest

Share This