RxWebKit 2.0.0

RxWebKit 2.0.0

TestsTested
LangLanguage SwiftSwift
License NOASSERTION
ReleasedLast Release Jun 2021
SPMSupports SPM

Maintained by Daichi Ichihara, RxSwift Community, RxWebKit Maintainers.



 
Depends on:
RxSwift~> 6.0
RxCocoa~> 6.0
 

RxWebKit 2.0.0

  • By
  • mokumoku and RxSwift Community

RxWebKit

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