Fix building with Xcode 14 RC
This commit is contained in:
parent
ff9286ca48
commit
f4196a2c26
|
@ -72,7 +72,10 @@ 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)
|
||||||
|
|
Loading…
Reference in New Issue