Latest 1.0.0
Homepage https://github.com/RxSwiftCommunity/RxWebKit
License MIT
Platforms ios 8.0
Dependencies RxSwift, RxCocoa
Authors ,

RxWebKit is a RxSwift wrapper for WebKit.

Carthage compatible
Version
License
Platform

Example Usages

// MARK: Setup WKWebView

let webView = WKWebView(frame: self.view.bounds)
self.view.addSubview(webView)

// MARK: Observing properties

webView.rx.title
    .subscribe(onNext: {
        print("title: ($0)")
    })
    .disposed(by: disposeBag)

webView.rx.url
    .subscribe(onNext: {
        print("URL: ($0)")
    })
    .disposed(by: disposeBag)

Installation

CocoaPods

Add to Podfile:

pod 'RxWebKit'

Carthage

Add to Cartfile:

github "RxSwiftCommunity/RxWebKit"

Run carthage update --platform iOS

Add run script build phase /usr/local/bin/carthage copy-frameworks with input files being:

$(SRCROOT)/carthage/Build/iOS/RxWebKit.framework

Requirements

RxWebKit requires Swift 5.0 and dedicated versions of RxSwift 5.0.0

License

MIT

Latest podspec

{
    "name": "RxWebKit",
    "version": "1.0.0",
    "summary": "RxWebKit is a RxSwift wrapper for WebKit.",
    "description": "RxWebKit is a RxSwift wrapper for `WebKit`.nn```swiftn// MARK: Setup WKWebViewnnlet webView = WKWebView(frame: self.view.bounds)nself.view.addSubview(webView)nnn// MARK: Observing propertiesnnwebView.rx.titlen    .subscribe(onNext: {n        print("title: ($0)")n    })n    .disposed(by: disposeBag)nnwebView.rx.urln    .subscribe(onNext: {n        print("URL: ($0)")n    })n    .disposed(by: disposeBag)n```",
    "homepage": "https://github.com/RxSwiftCommunity/RxWebKit",
    "license": "MIT",
    "authors": {
        "mokumoku": "[email protected]",
        "RxSwift Community": "[email protected]"
    },
    "source": {
        "git": "https://github.com/RxSwiftCommunity/RxWebKit.git",
        "tag": "1.0.0"
    },
    "source_files": "RxWebKit/Sources/**/*.{swift}",
    "platforms": {
        "ios": "8.0"
    },
    "exclude_files": [
        "RxWebKit/Sources/*.{plist}",
        "RxWebKit/Sources/**/*.{plist}",
        "RxWebKit/*.{plist}",
        "8.0"
    ],
    "swift_version": "5.0",
    "dependencies": {
        "RxSwift": [
            "~> 5.0"
        ],
        "RxCocoa": [
            "~> 5.0"
        ]
    }
}

Pin It on Pinterest

Share This