To run the example project, clone the repo, and run pod install
from the Example directory first.
Ruler<NSNumber *> *width = [Ruler<NSNumber *> iPhoneHorizontal:@(10), @(20), @(30), nil];
Ruler<NSNumber *> *height = [Ruler iPhoneVertical:@(5), @(10), @(20), @(30), nil];
NSLog(@"width:%@ height:%@", width.value, height);
Ruler<UIFont *> *font = [Ruler<UIFont *> iPhone:[UIFont systemFontOfSize:12], [UIFont systemFontOfSize:14], [UIFont systemFontOfSize:16], [UIFont systemFontOfSize:18], nil];
NSLog(@"font:%@", font.value);
HaidoraRuler is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "HaidoraRuler"
mrdaios, mrdaios@gmail.com
HaidoraRuler is available under the MIT license. See the LICENSE file for more info.