From 9dafa44e230bb680f0921ae25f82a7d92a2a1c7e Mon Sep 17 00:00:00 2001 From: noeyiz Date: Tue, 26 Mar 2024 20:55:02 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20WebView=20ProgressView=20?= =?UTF-8?q?=EC=95=88=20=EB=B3=B4=EC=9D=B4=EB=8A=94=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iBox/Sources/Web/WebView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iBox/Sources/Web/WebView.swift b/iBox/Sources/Web/WebView.swift index abafb01..463e896 100644 --- a/iBox/Sources/Web/WebView.swift +++ b/iBox/Sources/Web/WebView.swift @@ -78,8 +78,7 @@ class WebView: UIView { } progressView.snp.makeConstraints { make in - make.bottom.leading.trailing.equalToSuperview() - make.height.equalTo(2) + make.top.leading.trailing.equalToSuperview() } } @@ -103,7 +102,7 @@ extension WebView: WKNavigationDelegate { func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { progressView.setProgress(1.0, animated: true) // 약간의 딜레이를 주어서 프로그레스 바가 완전히 차도록 함 - DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) { + DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { self.progressView.isHidden = true } }