Skip to content

Commit f41d4b7

Browse files
committed
🐛 Fix compile error on iOS
1 parent 940f772 commit f41d4b7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Sources/WebView/WebView.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ extension WebView: UIViewRepresentable {
2222
}
2323

2424
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
25+
if view.contentView !== webView {
26+
view.contentView = webView
2827
}
2928
}
3029
}

0 commit comments

Comments
 (0)