Skip to content

Commit

Permalink
πŸ› Fix compile error on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
phatblat committed May 6, 2020
1 parent 940f772 commit f41d4b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/WebView/WebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ extension WebView: UIViewRepresentable {
}

public func updateUIView(_ view: WebView.UIViewType, context: UIViewRepresentableContext<WebView>) {
// If its the same content view we don't need to update.
if uiView.contentView !== webView {
uiView.contentView = webView
if view.contentView !== webView {
view.contentView = webView
}
}
}
Expand Down

0 comments on commit f41d4b7

Please sign in to comment.