We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 940f772 commit f41d4b7Copy full SHA for f41d4b7
1 file changed
Sources/WebView/WebView.swift
@@ -22,9 +22,8 @@ extension WebView: UIViewRepresentable {
22
}
23
24
public func updateUIView(_ view: WebView.UIViewType, context: UIViewRepresentableContext<WebView>) {
25
- // If its the same content view we don't need to update.
26
- if uiView.contentView !== webView {
27
- uiView.contentView = webView
+ if view.contentView !== webView {
+ view.contentView = webView
28
29
30
0 commit comments