From f4196a2c263fda6963354d55a31b607d2fd0efa6 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 7 Sep 2022 22:58:39 -0400 Subject: [PATCH] Fix building with Xcode 14 RC --- Reader/Screens/Read/ReadViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Reader/Screens/Read/ReadViewController.swift b/Reader/Screens/Read/ReadViewController.swift index 24f3adb..8157434 100644 --- a/Reader/Screens/Read/ReadViewController.swift +++ b/Reader/Screens/Read/ReadViewController.swift @@ -72,7 +72,10 @@ class ReadViewController: UIViewController { webView.isOpaque = false webView.backgroundColor = .clear 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 + #endif } if let content = itemContentHTML() { webView.loadHTMLString(content, baseURL: item.url)