Closed arashetm closed 4 years ago
@andreamazz could you help me please
Hey @arashetm it's an issue that came up wth iOS12 IIRC, for the moment I can only offer a dirty fix:
open func scrollViewShouldScrollToTop(_ scrollView: UIScrollView) -> Bool {
if let navigationController = self.navigationController as? ScrollingNavigationController {
navigationController.showNavbar(animated: true)
navigationController.scrollView()?.setContentOffset(CGPoint(x: 0, y: -200), animated: true)
}
return false
}
I'e put an hardcoded -200
there since I cant find the proper amount (the full navbar height i snot enough for some reason).
@andreamazz I've tried this but does not work, the problem still remains.
@andreamazz this should be closed as well
Describe the bug When 'searchController' is off tapping on the collapsed navigationBar doesn't scroll to top correctly.
To Reproduce Steps to reproduce the behavior:
navigationItem.searchController = UISearchController(searchResultsController: nil)
in 'TableViewController'Expected behavior Scroll to top correctly.
Screenshots