diff --git a/Sources/WebView/WebViewStore.swift b/Sources/WebView/WebViewStore.swift index 97c26e7..72b3ff7 100644 --- a/Sources/WebView/WebViewStore.swift +++ b/Sources/WebView/WebViewStore.swift @@ -27,6 +27,11 @@ public class WebViewStore: ObservableObject { setupObservers() } + /// Enables KeyPath access to wrapped WKWebView properties. + public subscript(keyPath: KeyPath) -> T { + webView[keyPath: keyPath] + } + deinit { observers.forEach { // Not even sure if this is required?