Open AymanOmara opened 2 years ago
func scrollViewWillBeginDragging(_ scrollView: UIScrollView) { let translation = scrollView.panGestureRecognizer.translation(in: scrollView.superview) if(translation.y > 0){ self.navigationController?.setNavigationBarHidden(false, animated: true) }else{ self.navigationController?.setNavigationBarHidden(true, animated: true) } }
Yeah, especially when we for ex. have to implement tabbar hiding and complex animation for it. Useless issue