https://github.com/ingenuity-ph/igcmacros
A collection of handy macros for development use.
https://github.com/ingenuity-ph/igcmacros
macros objective-c
Last synced: about 2 months ago
JSON representation
A collection of handy macros for development use.
- Host: GitHub
- URL: https://github.com/ingenuity-ph/igcmacros
- Owner: ingenuity-ph
- License: mit
- Created: 2018-03-02T04:39:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T09:26:59.000Z (over 7 years ago)
- Last Synced: 2025-06-18T17:43:58.068Z (4 months ago)
- Topics: macros, objective-c
- Language: Objective-C
- Size: 24.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IGCMacros
[](https://travis-ci.org/gia-vt/IGCMacros)
[](http://cocoapods.org/pods/IGCMacros)
[](http://cocoapods.org/pods/IGCMacros)
[](http://cocoapods.org/pods/IGCMacros)## 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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
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.
```swift
#import
- (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/`.
3. Commit your changes: `git commit -am 'Add some feature'`.
4. Push to the branch: `git push origin feature/`.
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.