Latest0.1.0
Homepagehttps://github.com/ingenuity-ph/IGCMacros
LicenseMIT
Platformsios 8.0
Authors

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 ([email protected])

License

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

Latest podspec

{
    "name": "IGCMacros",
    "version": "0.1.0",
    "summary": "A collection of handy macros for development use.",
    "description": "A collection of handy macros for development use. It encompasses some of the more commonly used code snippets and object initializations for Objective-C development.",
    "homepage": "https://github.com/ingenuity-ph/IGCMacros",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jason Jon E. Carreos": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ingenuity-ph/IGCMacros.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "IGCMacros/Classes/**/*"
}

Pin It on Pinterest

Share This