make web views inspectable

This commit is contained in:
Ivan Kuchin committed 2026-11-14 01:40:52 +01:00
1 parent 7908c801bf
commit ea3ee6d0a5
2 files changed
+2

No files matched your search

@@ -32,6 +32,7 @@ final class DetailWebView: WKWebView {
override init(frame: CGRect, configuration: WKWebViewConfiguration) {
super.init(frame: frame, configuration: configuration)
isInspectable = true
updateObscuredContentInsets()
}
+1
View File
@@ -18,6 +18,7 @@ final class PreloadedWebView: WKWebView {
init(articleIconSchemeHandler: ArticleIconSchemeHandler) {
let configuration = WebViewConfiguration.configuration(with: articleIconSchemeHandler)
super.init(frame: .zero, configuration: configuration)
isInspectable = true
fullscreenStateObservation = observe(\.fullscreenState, options: []) { [weak self] _, _ in
Task { @MainActor in
guard let self else {