iOS 16 API updates

This commit is contained in:
2022-10-11 15:04:37 -07:00
parent 75153d1c4a
commit 6be801420c
2 changed files with 3 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ class BrowserViewController: UIViewController
if FindOnPageViewController.isEnabled() {
browserView.setFindOnPageVisible(true, animated: true)
} else if #available(iOS 16.0, *) {
browserView.webView?._findInteraction.presentFindNavigatorShowingReplace(false)
browserView.webView?.findInteraction?.presentFindNavigator(showingReplace: false)
}
}), for: .touchUpInside)

View File

@@ -113,8 +113,8 @@
// Instantiate web view
WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:webViewConfiguration];
if ([webView respondsToSelector:@selector(_setFindInteractionEnabled:)]) {
webView._findInteractionEnabled = YES;
if (@available(iOS 16.0, *)) {
webView.findInteractionEnabled = YES;
}
// Configure proxy interface (interface to remote web process)