Skip to content

Commit

Permalink
PLAYRTS-5533 Always enable blur on bar to avoid UI glitches (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
mutaben committed Jun 10, 2024
1 parent acd5ae2 commit 8d08aee
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class PageContainerViewController: UIViewController {

private func configureBarView() {
let blurView = UIVisualEffectView.play_blurView
blurView.alpha = 0.0
self.blurView = blurView

let barView = TMBarView<TMHorizontalBarLayout, TMTabItemBarButton, TMLineBarIndicator>()
Expand Down Expand Up @@ -169,12 +168,6 @@ extension PageContainerViewController: ScrollableContentContainer {
var play_scrollableChildViewController: UIViewController? {
tabContainerViewController.currentViewController
}

func play_contentOffsetDidChange(inScrollableView scrollView: UIScrollView) {
let adjustedOffset = scrollView.contentOffset.y + scrollView.adjustedContentInset.top
tabBarTopConstraint?.constant = max(-adjustedOffset, 0.0)
blurView?.alpha = max(0.0, min(1.0, adjustedOffset / LayoutBlurActivationDistance))
}
}

extension PageContainerViewController: SRGAnalyticsContainerViewTracking {
Expand Down

0 comments on commit 8d08aee

Please sign in to comment.