Enable find interaction on Mac
This commit is contained in:
parent
07f8d8e89e
commit
5fef8de2ae
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue