We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want hide only tabbar
is there a way to this feature?
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Hiding tabBar can be done just by implementing scrollViewDelegate methods and animating the tabBar origin or frame with animation
//MARK: UIScrollViewDelegate func scrollViewWillBeginDecelerating(scrollView: UIScrollView) { if scrollView.panGestureRecognizer.translationInView(scrollView).y < 0 { showHideTabBar(hidden: true, animated: true) } else { showHideTabBar(hidden: false, animated: true) } } func showHideTabBar(hidden hide: Bool, animated: Bool) { var originY: CGFloat = 0 if hide { originY = (self.view.frame.height) } else { originY = (self.view.frame.height) - 49 } UIView.animateWithDuration(0.25, delay: 0, options: .CurveEaseIn, animations: { self.tabBarController?.tabBar.frame.origin.y = originY }, completion: nil) }
No branches or pull requests
I want hide only tabbar
is there a way to this feature?
The text was updated successfully, but these errors were encountered: