fix: restore WKWebView alpha to 1 when reparenting to article container
All checks were successful
Security Checks / dependency-audit (push) Successful in 15s
Security Checks / secret-scanning (push) Successful in 3s
Security Checks / dockerfile-lint (push) Successful in 4s

The GPU warmup set webView.alpha = 0 to keep it invisible while
attached to the window. makeUIView reparents it to the article
container but never restored alpha — articles rendered invisibly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-04 06:15:59 -05:00
parent db77a6d34d
commit 6ed7f8a230

View File

@@ -82,6 +82,7 @@ struct ArticleWebView: UIViewRepresentable {
let webView = ArticleRenderer.shared.webView let webView = ArticleRenderer.shared.webView
webView.removeFromSuperview() webView.removeFromSuperview()
webView.alpha = 1
webView.frame = container.bounds webView.frame = container.bounds
webView.autoresizingMask = [.flexibleWidth, .flexibleHeight] webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
container.addSubview(webView) container.addSubview(webView)