Fix building with Xcode 14 RC

This commit is contained in:
Shadowfacts 2022-09-07 22:58:39 -04:00
parent ff9286ca48
commit f4196a2c26
1 changed files with 3 additions and 0 deletions

View File

@ -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)