Latest 1.0.0
Homepage https://github.com/kingiol/KDObjectExt
License MIT
Platforms ios 9.0, osx 10.9, watchos 2.0, tvos 9.0
Frameworks Foundation
Authors

Build Status


It’s be easy to add extra values for NSObject, no more codes but a line code can be done.

class CustomObject: NSObject {

}

let object = CustomObject()
object.extValues = ["age": 10, "name": "kd"]

for more usage, you can find in KDObjectExtTests/KDObjectExtTests.swift

Installing

CocoaPods

pod 'KDObjectExt'

And that’ll be 👌

License

MIT obvs.

Latest podspec

{
    "name": "KDObjectExt",
    "version": "1.0.0",
    "summary": "A elegant way set extra value for NSObject.",
    "description": "now just about extra value, but we're love to PRs!",
    "homepage": "https://github.com/kingiol/KDObjectExt",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kingiol": "[email protected]"
    },
    "social_media_url": "https://twitter.com/kingiol",
    "platforms": {
        "ios": "9.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/kingiol/KDObjectExt.git",
        "tag": "1.0.0"
    },
    "source_files": "KDObjectExt/*.swift",
    "frameworks": "Foundation",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This