It adds lets, vars and typed copy/foreach functions for ObjC collections
To run the example project, clone the repo, and run pod install
from the Example directory first.
// Objective-C without types
NSDictionary *notes = [document fetchNotes];
printf("%d", [notes[@"default"] words]);
// Before:
NSDictionary<NSString*, NSArray<Note*>*> *notes = [document fetchNotes];
printf("%d", notes[@"default"]);
NSDictionary<NSString*, NSArray<Note*>*> *notes = [document fetchNotes];
printf("%d", notes[@"default"]);
ModernObjC is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ModernObjC'
Alexey Nazarov, alexx.nazaroff@gmail.com
ModernObjC is available under the MIT license. See the LICENSE file for more info.