diff --git a/Sources/LinkedIn/WebView/LinkedInWebView.swift b/Sources/LinkedIn/WebView/LinkedInWebView.swift index 25d9499..ed93fd8 100644 --- a/Sources/LinkedIn/WebView/LinkedInWebView.swift +++ b/Sources/LinkedIn/WebView/LinkedInWebView.swift @@ -31,7 +31,6 @@ public struct LinkedInWebView: UIViewRepresentable { webView = WKWebView(frame: .zero, configuration: config) self.onSuccess = onSuccess self.onFailure = onFailure - webView.navigationDelegate = makeCoordinator() } public func makeUIView(context: Context) -> some UIView { @@ -45,7 +44,7 @@ public struct LinkedInWebView: UIViewRepresentable { dismiss() return } -// webView.navigationDelegate = context.coordinator + webView.navigationDelegate = context.coordinator webView.load(.init(url: authURL)) }