Skip to content

Haidora/HaidoraRuler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HaidoraRuler

CI Status Version License Platform

Usage

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

Example

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);

Installation

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

pod "HaidoraRuler"

Inspired by these projects:

Author

mrdaios, mrdaios@gmail.com

License

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