Skip to content

Commit

Permalink
fix tabbar not responding
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzhao committed Jan 5, 2018
1 parent 8faa400 commit a5bec96
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/Transition/HeroTransition+Complete.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ extension HeroTransition {

completionCallback?(finished)

// https://github.com/lkzhao/Hero/issues/354
// tabbar not responding after pushing a view controller with hideBottomBarWhenPushed
// this is due to iOS adding a few extra animation to the tabbar but they are not removed when
// the transition completes. Possibly another iOS bug. let me know if you have better work around.
if finished {
toViewController?.tabBarController?.tabBar.layer.removeAllAnimations()
} else {
fromViewController?.tabBarController?.tabBar.layer.removeAllAnimations()
}

if finished {
if let fvc = fromViewController, let tvc = toViewController {
closureProcessForHeroDelegate(vc: fvc) {
Expand Down

0 comments on commit a5bec96

Please sign in to comment.