Latest 1.2
Homepage https://github.com/dvkch/SYPair
License Custom
Platforms ios 5.0, tvos 9.0, requires ARC
Authors

Pair object for Objective-C with generics support!

#import <Foundation/Foundation.h>

@interface SYPair <ObjectType1, ObjectType2> : NSObject

+ (instancetype)pairWithObject:(ObjectType1)object1 andObject:(ObjectType2)object2;
- (instancetype)initWithObject:(ObjectType1)object1 andObject:(ObjectType2)object2;

- (ObjectType1)object1;
- (ObjectType2)object2;

@end

License

Use it as you like in every project you want, redistribute with mentions of my name and don’t blame me if it breaks :)

— dvkch

Latest podspec

{
    "name": "SYPair",
    "platforms": {
        "ios": "5.0",
        "tvos": "9.0"
    },
    "version": "1.2",
    "license": "Custom",
    "summary": "Pair object for Objective-C with generics support",
    "homepage": "https://github.com/dvkch/SYPair",
    "authors": {
        "Stan Chevallier": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dvkch/SYPair.git",
        "tag": "1.2"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true,
    "xcconfig": {
        "CLANG_MODULES_AUTOLINK": "YES"
    }
}

Pin It on Pinterest

Share This