To run the example project, clone the repo, and run pod install
from the Example directory first.
IGCMacros is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'IGCMacros'
This works the same as all macros available in Objective-C. Once the library has been imported, all of the macros will now be available for usage.
#import <IGCMacros/IGCMacros.h>
- (void)sampleFunction {
UIFont *font = FONT(@"HelveticaNeue", 20);
UIAlertController *controller = ALERT(@"Test", @"Some Message");
if (SYSTEM_VERSION_GREATERTHAN_OR_EQUALTO(@"10.0")) {
DLog(@"is iOS 10");
}
[NOTIFICATION_CENTER postNotificationName:@"IGCTestNotification" object:nil];
}
- Fork repository.
- Create your feature branch:
git checkout -b feature/<feature-name>
. - Commit your changes:
git commit -am 'Add some feature'
. - Push to the branch:
git push origin feature/<feature-name>
. - Submit a pull request.
Jason Jon E. Carreos ([email protected])
IGCMacros is available under the MIT license. See the LICENSE file for more info.