@@ -11,10 +11,11 @@ import WebKit
1111import LibTorrent
1212
1313class RssDetailsViewController < VM: RssDetailsViewModel > : BaseViewController < VM > {
14- private var webView : WKWebView !
14+ private var webView : WKWebView = . init ( )
1515 private var webViewViewController : UIViewController !
16- @IBOutlet private var downloadButtonContainer : UIView !
16+ @IBOutlet private var downloadButtonContainer : UIVisualEffectView !
1717 @IBOutlet private var downloadButtonNonSafeAreaHolder : UIView !
18+ @IBOutlet private var downloadButtonSeparator : UIView !
1819 @IBOutlet private var downloadButton : UIButton !
1920 @IBOutlet private var separatorHeight : NSLayoutConstraint !
2021
@@ -65,7 +66,14 @@ private extension RssDetailsViewController {
6566 separatorHeight. constant = 1 / traitCollection. displayScale
6667
6768 if #available( iOS 26 , visionOS 26 , * ) {
69+ downloadButtonContainer. effect = nil
70+ downloadButtonSeparator. isHidden = true
6871 downloadButton. configuration = . prominentGlass( )
72+
73+ let interaction = UIScrollEdgeElementContainerInteraction ( )
74+ interaction. scrollView = webView. scrollView
75+ interaction. edge = . bottom
76+ downloadButtonContainer. addInteraction ( interaction)
6977 }
7078
7179 downloadButton. configuration? . titleTextAttributesTransformer = . init { attributes in
@@ -86,7 +94,6 @@ private extension RssDetailsViewController {
8694 navigationItem. setRightBarButton ( button, animated: false )
8795 }
8896
89- webView = WKWebView ( )
9097 webView. translatesAutoresizingMaskIntoConstraints = false
9198 webView. scrollView. backgroundColor = . systemBackground
9299 webView. isOpaque = false
@@ -111,7 +118,7 @@ private extension RssDetailsViewController {
111118 webViewViewController. additionalSafeAreaInsets. left = 8
112119 webViewViewController. additionalSafeAreaInsets. right = 8
113120
114- webView. backgroundColor = . secondarySystemBackground
121+ webView. backgroundColor = . systemBackground
115122#if !os(visionOS)
116123 webView. scrollView. keyboardDismissMode = . onDrag
117124#endif
0 commit comments