https://github.com/RxSwiftCommunity/RxWebKit
RxWebKit is a RxSwift wrapper for WebKit
https://github.com/RxSwiftCommunity/RxWebKit
rxswift wkwebview
Last synced: 5 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T09:24:20.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T18:32:16.158Z (5 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`.
[](https://github.com/Carthage/Carthage)
[](http://cocoapods.org/pods/RxWebKit)
[](http://cocoapods.org/pods/RxWebKit)
[](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