Latest 1.1.1
Homepage https://github.com/mhuusko5/M5Enum
License MIT
Authors

Objective-C macro to wrap enum defines – generates inline function to lookup string/name for enum value.

Usage

M5Enum(Usefulness,
    typedef NS_ENUM(NSUInteger, Usefulness) {
        kUsefulnessUseful,
        kUsefulnessVeryUseful ,
        kUsefulnessSuperUseful,
        kUsefulnessUseless
    }
);

...
...

Usefulness someUsefulness = kUsefulnessVeryUseful;

NSLog(@"Usefulness: %@", UsefulnessName(someUsefulness)); //"Usefulness: kUsefulnessVeryUseful"

Latest podspec

{
    "name": "M5Enum",
    "version": "1.1.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Objective-C macro to wrap enum defines u2013 generates inline function to lookup string/name for enum value.",
    "homepage": "https://github.com/mhuusko5/M5Enum",
    "social_media_url": "https://twitter.com/mhuusko5",
    "authors": {
        "Mathew Huusko V": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mhuusko5/M5Enum.git",
        "tag": "1.1.1"
    },
    "source_files": "*.{h,m}"
}

Pin It on Pinterest

Share This