https://github.com/zkrige/easyjswkwebview
WKWebView implementation of EasJSWebView Javascript bridge
https://github.com/zkrige/easyjswkwebview
Last synced: 4 months ago
JSON representation
WKWebView implementation of EasJSWebView Javascript bridge
- Host: GitHub
- URL: https://github.com/zkrige/easyjswkwebview
- Owner: zkrige
- License: mit
- Created: 2016-10-05T12:02:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-17T07:36:59.000Z (over 6 years ago)
- Last Synced: 2025-09-23T02:47:08.287Z (8 months ago)
- Language: Objective-C
- Homepage:
- Size: 39.1 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyJSWKWebView
[](http://cocoapods.org/pods/EasyJSWKWebView)
[](http://cocoapods.org/pods/EasyJSWKWebView)
[](http://cocoapods.org/pods/EasyJSWKWebView)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
```html
```
```swift
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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "EasyJSWKWebView"
```
## Swift
This library uses OBJC functions that are not transportable to SWIFT. If you are using this with swift, remember to tag your methods @objc so that the objc invoker can find them
## Author
Zayin Krige, zkrige@gmail.com
## License
EasyJSWKWebView is available under the MIT license. See the LICENSE file for more info.