Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WKWebview 添加loading和estimatedProgress rx属性
extension Reactive where Base: WKWebView {
var loading: Observable<Bool> {
return observeWeakly(Bool.self, "loading", options: [.initial, .new]).map { $0 ?? false }
var estimatedProgress: Observable<Double> {
return observeWeakly(Double.self, "estimatedProgress").map { $0 ?? 0 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.