Skip to content

ingenuity-ph/IGCMacros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IGCMacros

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod 'IGCMacros'

Usage

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];
}

Contributing

  1. Fork repository.
  2. Create your feature branch: git checkout -b feature/<feature-name>.
  3. Commit your changes: git commit -am 'Add some feature'.
  4. Push to the branch: git push origin feature/<feature-name>.
  5. Submit a pull request.

Author

Jason Jon E. Carreos (jason@ingenuity.ph)

License

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