TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | May 2017 |
Maintained by Lazar Otasevic.
In your source code add #import "RHBSnippets.h"
and you are ready! This file will not make any troubles to your compiler since its all based upon macro definitions.
Instead of copy pasting this block every time:
@implementation RHBOrientationUtilities
+ (instancetype)sharedInstance {
static id sharedInstance;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [self new];
});
return sharedInstance;
}
/// init and other methods ...
You just add this one line:
@implementation RHBOrientationUtilities
RHB_SINGLETON_IMPLEMENTATION();
/// init and other methods ...
There is also macro to make an UIColor from (hex) color refferences.
To run the example project, clone the repo, and run pod install
from the Example directory first.
RHBSnippetsObjC is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RHBSnippetsObjC"
Lazar Otasevic, [email protected]
RHBSnippetsObjC is available under the MIT license. See the LICENSE file for more info.