ios - Capture clicked links in a UIWebView using RxSwift -
i'm starting use rxswift @ work , i'm on project right need capture clicked links in web view. can’t method :
webview(_ webview: uiwebview, shouldstartloadwith request: urlrequest, navigationtype: uiwebviewnavigationtype) -> bool
uiwebviewdelegate work. it's never called no matter do.
i tried use delegateproxy thing think don’t it...
i’m trying figure out more “reactive” way this.
if you're using of reactive properties, delegate "taken over" rxswift/rxcocoa. if want use delegate "as usual" alongside rxswift you'll need set delegate proxy.
e.g.
webview.rx.setdelegate(self).disposed(by: disposebag)
Comments
Post a Comment