Home

Awesome

Pangu.objective-c

Travis CI codecov.io Cocoapods

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean), half-width English, digit and symbol characters.

Installation

The simplest option is to use pod "Pangu".

You can also add the Classes folder to your project, and then import Pangu.h. There are no further requirements.

Usage

#import "Pangu.h"

[NSString spacing:@"請問Jackie的鼻子有幾個?123個!"];
// 請問 Jackie 的鼻子有幾個?123 個!

UILabel *label = [UILable new];
label.text = @"請問Jackie的鼻子有幾個?123個!";
// 請問 Jackie 的鼻子有幾個?123 個!

License

Released under the MIT License.