Latest 0.1.0
Homepage https://github.com/inamiy/Swizzle
License MIT
Platforms osx 10.9, ios 8.0, watchos 2.0, tvos 9.0
Authors

Method-Swizzling for Swift.

Example

swizzleInstanceMethod(MyObject.self, from: #selector(MyObject.hello), to: #selector(MyObject.bye))
swizzleInstanceMethodString(MyObject.self, from: "dealloc", to: "_my_dealloc")

swizzleClassMethod(MyObject.self, from: #selector(MyObject.hello), to: #selector(MyObject.bye))
swizzleClassMethodString(MyObject.self, from: "privateObjCClassMethod", to: "myClassMethod")

Licence

MIT

Latest podspec

{
    "name": "Swizzle",
    "version": "0.1.0",
    "license": {
        "type": "MIT"
    },
    "homepage": "https://github.com/inamiy/Swizzle",
    "authors": {
        "Yasuhiro Inami": "[email protected]"
    },
    "summary": "Method-Swizzling for Swift.",
    "source": {
        "git": "https://github.com/inamiy/Swizzle.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "osx": "10.9",
        "ios": "8.0",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "source_files": "Swizzle/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This