Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RxSwiftCommunity/RxWebKit
RxWebKit is a RxSwift wrapper for WebKit
https://github.com/RxSwiftCommunity/RxWebKit
rxswift wkwebview
Last synced: 2 months ago
JSON representation
RxWebKit is a RxSwift wrapper for WebKit
- Host: GitHub
- URL: https://github.com/RxSwiftCommunity/RxWebKit
- Owner: RxSwiftCommunity
- License: mit
- Created: 2016-02-12T13:26:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T09:24:20.000Z (over 1 year ago)
- Last Synced: 2024-11-11T18:32:16.158Z (3 months ago)
- Topics: rxswift, wkwebview
- Language: Swift
- Size: 164 KB
- Stars: 251
- Watchers: 28
- Forks: 103
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-rxswift - RxWebKit
README
# RxWebKit
RxWebKit is a [RxSwift](https://github.com/ReactiveX/RxSwift) wrapper for `WebKit`.
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/RxWebKit.svg?style=flat)](http://cocoapods.org/pods/RxWebKit)
[![License](https://img.shields.io/cocoapods/l/RxWebKit.svg?style=flat)](http://cocoapods.org/pods/RxWebKit)
[![Platform](https://img.shields.io/cocoapods/p/RxWebKit.svg?style=flat)](http://cocoapods.org/pods/RxWebKit)## Example Usages
```swift
// MARK: Setup WKWebViewlet 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