Skip to content

Commit

Permalink
Only hide tab bar for iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
mazevedofs committed Feb 13, 2025
1 parent 1cc5924 commit 8f0d498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wikipedia/Code/ColumnarCollectionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class ColumnarCollectionViewController: ThemeableViewController, ColumnarCollect

func scrollViewDidScroll(_ scrollView: UIScrollView) {
_maxViewed = max(_maxViewed, percentViewed)
if #available(iOS 18.0, *) {
if UIDevice.current.userInterfaceIdiom == .pad, #available(iOS 18.0, *) {
let velocity = scrollView.panGestureRecognizer.velocity(in: scrollView).y
if velocity < 0 { // Scrolling down
tabBarController?.setTabBarHidden(true, animated: true)
Expand Down

0 comments on commit 8f0d498

Please sign in to comment.