Skip to content

Commit

Permalink
Adaption for visionOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
m4p committed Sep 13, 2023
1 parent 45aed92 commit 78b9cea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extension HeroTransition: UITabBarControllerDelegate {
}
return true
}

#if !os(visionOS)
public func tabBarController(_ tabBarController: UITabBarController, interactionControllerFor animationController: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? {
return interactiveTransitioning
}
Expand All @@ -50,6 +50,8 @@ extension HeroTransition: UITabBarControllerDelegate {
self.inTabBarController = true
return self
}
#endif

}

#endif

2 comments on commit 78b9cea

@rivera-ernesto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Could you PR this to the original repository? I tried to do it on your behalf but got a permissions' error.

@m4p
Copy link
Contributor Author

@m4p m4p commented on 78b9cea Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just did. Thanks for reminding me.

Please sign in to comment.