Skip to content

haifengkao/HFTAGManager

Repository files navigation

HFTAGManager

CI Status Coverage Status Version License Platform

Usage

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

HFTAGRule* rule = [[HFTAGRule alloc] initWithBlock:^[(TagRule* rule){
    NSPredicate *purchased = [NSPredicate predicateWithFormat:@"SELF.isPurchased MATCHES %@", @"1"];
    [rule setPredicate:purchased rule:@{@"gift":@"apple"}];

    // not purchased
    [rule setPredicate:nil rule:@{@"gift":@"nothing"}];
}];
NSDictionary* gift = [container dictionaryForKey:@"specialGift" defaultRule:rule];

Requirements

Installation

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

pod "HFTAGManager"

Author

Hai Feng Kao, haifeng@cocoaspice.in

License

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