iOS 16 API updates
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user