From 382826bfff42808ff31500a73f91ecd9b7f74eec Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 9 Jun 2022 23:28:40 -0400 Subject: [PATCH] Enable find interaction on iOS 16 --- 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 d4e1d54..1b611e6 100644 --- a/Reader/Screens/Read/ReadViewController.swift +++ b/Reader/Screens/Read/ReadViewController.swift @@ -70,6 +70,9 @@ class ReadViewController: UIViewController { // transparent background required to prevent white flash in dark mode, just using .appBackground doesn't work webView.isOpaque = false webView.backgroundColor = .clear + if #available(iOS 16.0, *) { + webView.isFindInteractionEnabled = true + } if let content = itemContentHTML() { webView.loadHTMLString(content, baseURL: item.url) }