         }
 
         func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
-//            viewModel.progress = 0
         }
 
         func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
-//            viewModel.progress = nil
         }
 
         func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
             if !error.isCancelled {
                 webView.errorPage(error: error)
             }
-//            viewModel.progress = nil
         }
     }
 }


struct LinkWebView: UIViewRepresentable {

    @ObservedObject var viewModel: ViewModel

    @State var observation: NSKeyValueObservation?

    func makeUIView(context: UIViewRepresentableContext<LinkWebView>) -> WKWebView {
        let webView = WKWebView()
        webView.navigationDelegate = context.coordinator

        observation  = webView.observe(\.estimatedProgress, options: .new) { _, change in
            print("change ", webView.estimatedProgress, change)
            viewModel.progress = webView.estimatedProgress
        }

        return webView
    }

                let request = URLRequest(url: url)
                uiView.load(request)
            load(webView: uiView)
        }
    }

