mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
make web views inspectable
This commit is contained in:
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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user