We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b910296 commit 7660b86Copy full SHA for 7660b86
Sources/SwiftUIX/Intramodular/Web/WebView.swift
@@ -157,7 +157,11 @@ struct _WKWebViewRepresentable: AppKitOrUIKitViewRepresentable {
157
let webpagePreferences = WKWebpagePreferences()
158
159
if let allowsContentJavaScript = self.configuration.allowsContentJavaScript {
160
- webpagePreferences.allowsContentJavaScript = allowsContentJavaScript
+ if #available(iOS 14, macOS 11, *) {
161
+ webpagePreferences.allowsContentJavaScript = allowsContentJavaScript
162
+ } else {
163
+ // TODO: (@vatsal) handle earlier versions
164
+ }
165
}
166
167
let webViewConfiguration = WKWebViewConfiguration()
0 commit comments