You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please check to the following log for the runtime.
2021-10-28 19:14:34.228664+0900 RxWebKitSample[2594:65726] RxCocoa/RxCocoa.swift:153: Fatal error: Failure converting from Optional(<RxCocoa.RxWKNavigationDelegateProxy: 0x600003ec4900>) to RxWKNavigationDelegateProxy
(lldb)
The sample code is attached below.
import UIKit
import RxSwift
import RxCocoa
import RxWebKit
import WebKit
class ViewController: UIViewController {
@IBOutlet weak var webView: WKWebView!
let disposeBag = DisposeBag()
override func viewDidLoad() {
super.viewDidLoad()
webView.load(URLRequest(url: URL(string: "https://google.com")!))
webView.rx
.didStartLoad // <- This property is implementing at the RxCocoa
.subscribe { value in
print("value: \(value)")
}.disposed(by: disposeBag)
webView.rx
.didStartProvisionalNavigation // <- This property is implementing at the RxWebKit
.asObservable()
.subscribe { (webView: WKWebView, navigation: WKNavigation) in
print("web: \(webView)")
print("navigation: \(navigation)")
}.disposed(by: disposeBag)
// Do any additional setup after loading the view.
}
}
The image of the runtime is attached below.
Error log bellow
Thread 1: Fatal error: Failure converting from Optional(<RxCocoa.RxWKNavigationDelegateProxy: 0x600003ec4900>) to RxWKNavigationDelegateProxy
The text was updated successfully, but these errors were encountered:
Please check to the following log for the runtime.
The sample code is attached below.
The image of the runtime is attached below.
Error log bellow
The text was updated successfully, but these errors were encountered: