Skip to content

RxSwiftCommunity/RxWebKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6225dd5 · Jul 5, 2022
May 15, 2020
Feb 8, 2022
Jan 3, 2021
May 14, 2020
May 16, 2019
May 14, 2020
Jul 5, 2022
Feb 12, 2016
Jan 3, 2021
May 16, 2019
Jan 3, 2021
Feb 12, 2016
Feb 8, 2022
Feb 8, 2022
Jan 3, 2021
Feb 8, 2022

Repository files navigation

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.2.2 and dedicated versions of RxSwift 6.0.0

License

MIT