iOS 16 API updates
This commit is contained in:
@@ -270,7 +270,7 @@ class BrowserViewController: UIViewController
|
|||||||
if FindOnPageViewController.isEnabled() {
|
if FindOnPageViewController.isEnabled() {
|
||||||
browserView.setFindOnPageVisible(true, animated: true)
|
browserView.setFindOnPageVisible(true, animated: true)
|
||||||
} else if #available(iOS 16.0, *) {
|
} else if #available(iOS 16.0, *) {
|
||||||
browserView.webView?._findInteraction.presentFindNavigatorShowingReplace(false)
|
browserView.webView?.findInteraction?.presentFindNavigator(showingReplace: false)
|
||||||
}
|
}
|
||||||
}), for: .touchUpInside)
|
}), for: .touchUpInside)
|
||||||
|
|
||||||
|
|||||||
@@ -113,8 +113,8 @@
|
|||||||
|
|
||||||
// Instantiate web view
|
// Instantiate web view
|
||||||
WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:webViewConfiguration];
|
WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:webViewConfiguration];
|
||||||
if ([webView respondsToSelector:@selector(_setFindInteractionEnabled:)]) {
|
if (@available(iOS 16.0, *)) {
|
||||||
webView._findInteractionEnabled = YES;
|
webView.findInteractionEnabled = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure proxy interface (interface to remote web process)
|
// Configure proxy interface (interface to remote web process)
|
||||||
|
|||||||
Reference in New Issue
Block a user