From f41d4b73c19bdb4b0227fd43b2d464d6c2e8d64e Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Wed, 6 May 2020 07:36:33 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20compile=20error=20on=20iOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/WebView/WebView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/WebView/WebView.swift b/Sources/WebView/WebView.swift index ec5b06e..626da2c 100644 --- a/Sources/WebView/WebView.swift +++ b/Sources/WebView/WebView.swift @@ -22,9 +22,8 @@ extension WebView: UIViewRepresentable { } public func updateUIView(_ view: WebView.UIViewType, context: UIViewRepresentableContext) { - // 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 } } }