Fix blank UI after dismissing a full-screen image. Fixes #3641.

This commit is contained in:
Brent Simmons committed 2026-08-02 16:57:28 -07:00
1 parent 74eea8fe86
commit bec611c1fc
4 files changed
+44 -26

No files matched your search

+1 -16
View File
@@ -505,21 +505,6 @@ extension WebViewController: WKScriptMessageHandler {
}
// MARK: UIViewControllerTransitioningDelegate
extension WebViewController: UIViewControllerTransitioningDelegate {
func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
transition.presenting = true
return transition
}
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
transition.presenting = false
return transition
}
}
// MARK:
extension WebViewController: UIScrollViewDelegate {
@@ -726,7 +711,7 @@ private extension WebViewController {
transition.originImage = image
coordinator.showFullScreenImage(image: image, imageTitle: clickMessage.imageTitle, transitioningDelegate: self)
coordinator.showFullScreenImage(image: image, imageTitle: clickMessage.imageTitle, transition: transition)
}
func stopMediaPlayback(_ webView: WKWebView) {