Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added didFailProvisionalNavigation to WKWebView+Rx. #2557

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keisukeYamagishi
Copy link

I am encountering a significant issue as didFailProvisionalNavigation is missing in WKWebView+Rx.

For more details on this function, please refer to the Apple Developer documentation:

webView(_:didFailProvisionalNavigation:withError:)

https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455637-webview

I have added this function and would greatly appreciate it if knowledgeable individuals could review it.

Thank you very much in advance for your assistance.

@@ -52,6 +52,18 @@ extension Reactive where Base: WKWebView {
)
}
}

public var didFailProvisionalNavigation: Observable<(WKNavigation, Error)> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a corresponding test in WKWebView+Tests.swift

@freak4pc freak4pc force-pushed the main branch 2 times, most recently from 1198683 to 5949cbd Compare April 21, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants