I am trying to mimic the UINavigationController\'s new hidesBarsOnTap with a tab bar. I have seen many answers to this that either point to setting the hi
hidesBarsOnTap
hi
To make the animations work with self.tabBarController?.tabBar.hidden = true just do this:
self.tabBarController?.tabBar.hidden = true
UIView.animateWithDuration(0.2, animations: { self.tabBarController?.tabBar.hidden = true })
Other than the other solution this will also work nicely with autolayout.