Latest 1.1.1
Homepage https://github.com/zkrige/EasyJSWKWebView
License MIT
Platforms ios 8.0
Frameworks UIKit, WebKit
Authors

Version
License
Platform

Example

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

<html>
<body><br/><br/><br/><input value="Press Me" type="button" onclick="JSInterface.test();"></body>
</html>

public class ClickCatcher : NSObject {
    public func test() -> String{
        return "Clicked"
    }
}

let interfaces = ["JSInterface" : ClickCatcher()];
webview = EasyJSWKWebView(frame: view.bounds, configuration: config, withJavascriptInterfaces: interfaces)

Requirements

iOS8+

Installation

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

pod "EasyJSWKWebView"

Author

Zayin Krige, [email protected]

License

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

Latest podspec

{
    "name": "EasyJSWKWebView",
    "version": "1.1.1",
    "summary": "Catch Javascript events in iOS",
    "description": "Add a JSInterface to your WKWebview just like in android. Catch Javascript events. Send data to javascript from iOS",
    "homepage": "https://github.com/zkrige/EasyJSWKWebView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Zayin Krige": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zkrige/EasyJSWKWebView.git",
        "tag": "1.1.1"
    },
    "social_media_url": "https://twitter.com/zkrige",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "EasyJSWKWebView/Classes/**/*",
    "public_header_files": "EasyJSWKWebView/Classes/**/*.h",
    "frameworks": [
        "UIKit",
        "WebKit"
    ],
    "resource_bundles": {
        "EasyJSWKWebView": [
            "EasyJSWKWebView/Assets/**/*.js"
        ]
    }
}

Pin It on Pinterest

Share This