Skip to content

Commit

Permalink
issue RxSwiftCommunity#58 fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
wklim00 committed Sep 19, 2022
1 parent 6225dd5 commit 08b05d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/RxWebKit/WKNavigationDelegateEvents+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,12 @@ extension Selector {
/// Ambiguous use of 'webView(_:decidePolicyFor:decisionHandler:)'
/// please see this link for further understanding
/// https://bugs.swift.org/browse/SR-3062
#if swift(>=5.7)
/*
static let decidePolicyNavigationResponse = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as (WKNavigationDelegate) -> ((WKWebView, WKNavigationResponse, @escaping(WKNavigationResponsePolicy) -> Void) -> Void)?)
static let decidePolicyNavigationAction = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as (WKNavigationDelegate) -> ((WKWebView, WKNavigationAction, @escaping (WKNavigationActionPolicy) -> Void) -> Void)?)
#else
*/
static let decidePolicyNavigationResponse = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as ((WKNavigationDelegate) -> (WKWebView, WKNavigationResponse, @escaping(WKNavigationResponsePolicy) -> Void) -> Void)?)
static let decidePolicyNavigationAction = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as ((WKNavigationDelegate) -> (WKWebView, WKNavigationAction, @escaping(WKNavigationActionPolicy) -> Void) -> Void)?)
#endif
}


0 comments on commit 08b05d4

Please sign in to comment.