Enable find interaction on Mac

This commit is contained in:
Shadowfacts 2023-01-14 13:27:56 -05:00
parent 07f8d8e89e
commit 5fef8de2ae
1 changed files with 0 additions and 3 deletions

View File

@ -74,10 +74,7 @@ class ReadViewController: UIViewController {
webView.isOpaque = false webView.isOpaque = false
webView.backgroundColor = .clear webView.backgroundColor = .clear
if #available(iOS 16.0, *) { if #available(iOS 16.0, *) {
// TODO: Xcode 14 RC doesn't have the macOS 13 SDK, so we can't use this
#if !targetEnvironment(macCatalyst)
webView.isFindInteractionEnabled = true webView.isFindInteractionEnabled = true
#endif
} }
if let content = itemContentHTML() { if let content = itemContentHTML() {
webView.loadHTMLString(content, baseURL: item.url) webView.loadHTMLString(content, baseURL: item.url)