Skip to content

Commit

Permalink
PLAYRTS-5582 Fix tab bar offset when scrolling (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
mutaben authored Jul 29, 2024
1 parent 13ea6db commit f8dd673
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ 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)
}
}

extension PageContainerViewController: SRGAnalyticsContainerViewTracking {
Expand Down

0 comments on commit f8dd673

Please sign in to comment.