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

Push to a Navigation Controller #82

Closed nlogioco closed 8 years ago

nlogioco commented 8 years ago

Issue 1: Pushing to a new view from tab bar controller When you do this, the tab bar icons stay on the screen when they should have disappeared during the transition animation. (The icons are now overtop of a view that should be on top of the icons)

Issue2: Popping the view you just pushed to go back to the tab bar controller When you do this, it seems like the original tab bar is now covering the tab bar icons we added originally.

I haven't come up with a solution, but will be looking for one and will post a solution if I find one.

0ber commented 8 years ago

you can use this method public func animationTabBarHidden(isHidden:Bool) to hide tab bar

nlogioco commented 8 years ago

I found where the problem happens.

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?)

destVC.hidesBottomBarWhenPushed = true

This causes the tab bar to disappear, but our custom tab bar icons we made (uiimageview/uiview) stay on the screen.