Phase 1.14.e:webView didFinish 后 0.3s 淡出 splash

把 WKNavigationDelegate.didFinish 里的 splash.isHidden = true 换成
UIView.animate(withDuration: 0.3) 渐变 alpha=0 + completion 内
removeFromSuperview,避免渲染瞬间硬切,也让 view 层级在大厅起来后
完全干净(无空持有的 splash 占位)。

BuildProject 通过

Plan 进度已勾选(§5 Phase 1.14.e + §8)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
joywayer
2026-06-22 02:51:25 +08:00
co-authored by Claude Opus 4.7
parent f247b81d6d
commit f795957eb1
2 changed files with 12 additions and 7 deletions
@@ -223,9 +223,13 @@ public final class WebContainerViewController: UIViewController {
extension WebContainerViewController: WKNavigationDelegate {
public func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
// Phase 1.14.d splash
// Phase 1.14.e UIView.animate(0.3) + removeFromSuperview
splash.isHidden = true
// H5 splash 0.3s removeFromSuperview
// superview
UIView.animate(withDuration: 0.3, animations: { [weak self] in
self?.splash.alpha = 0
}, completion: { [weak self] _ in
self?.splash.removeFromSuperview()
})
}
}