Ramotion / animated-tab-bar

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
https://www.ramotion.com/animated-tab-bar-ios-app-development-ui-library/
MIT License
11.13k stars 1.33k forks source link

Tabbar Not hide #261

Closed RuchiMakadia closed 4 years ago

RuchiMakadia commented 5 years ago

I tried to show Viewcontroller using navigation viewController now when I push to Second View controller from First Viewcontroller that contain a bottom tab bar. I used code like below in second ViewController ViewWillAppear Method let tababrController = RAMAnimatedTabBarController() tababrController.tabBar.isHidden= true

here is a screenShot of my storyBoard https://prnt.sc/passk4

I also check the right of Hide Bottom Bar on Push in Second View Controller here is a second view Controller image that contain bottom bar https://prnt.sc/pasyg9 please help me thanx in advance

Yarob50 commented 5 years ago

I have the same issue here :(

Yarob50 commented 5 years ago

I am not sure whether this behavior is related to ios 13, but anyways, I found a simple solution for it: In viewWillApper of the ViewController that you want to hide the tabbar when it's presented: override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) //hide the tabbar if let tb = self.tabBarController as? RAMAnimatedTabBarController{ tb.animationTabBarHidden(true) } } And then in ViewWillDisappear: override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) //showing the tabbar again if let tb = self.tabBarController as? RAMAnimatedTabBarController{ tb.animationTabBarHidden(false) } } I hope it works with anyone having the problem :)