Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BottomNavigationController same swipe behaviour as Tabbar #1132

Closed
Parilar opened this issue Aug 13, 2018 · 9 comments
Closed

BottomNavigationController same swipe behaviour as Tabbar #1132

Parilar opened this issue Aug 13, 2018 · 9 comments

Comments

@Parilar
Copy link

Parilar commented Aug 13, 2018

Hello,
i had the same Issue with the title at bottom and changed from Tabbar to BottomNavigationController.
But now i lost the swipe effect to change the Page. I', looking for the same swipe effect like android has it to change the page where you can see both pages while swiping.

Is there any way to archive that behavior with BottomNavigationController?

@daniel-jonathan
Copy link
Member

daniel-jonathan commented Aug 13, 2018

Hey! The BottomNavigationController is a subclass of the TabBarController. So it should allow the same behavior. Have you tried configuring your settings to the same as the TabBar you originally had working?

@Parilar
Copy link
Author

Parilar commented Aug 13, 2018 via email

@daniel-jonathan
Copy link
Member

So it all works now?

@Parilar
Copy link
Author

Parilar commented Aug 13, 2018 via email

@OrkhanAlikhanov
Copy link
Contributor

@Parilar You changed from UITabBarController to BottomNavigationController or from TabsContoller?
Among those, only TabsContoller has swipe gesture feature (which is with animation).
BottomNavigationController is direct subclass of UITabBarController, I don't believe we can easily add animation to it. I need to take a look at though.

@daniel-jonathan
Copy link
Member

@Parilar Motion, which is part of Material, allows for you to tap into UITabBarController's interactive and non-interactive transitions. We will put together a mini example on how to accomplish this.

@Parilar
Copy link
Author

Parilar commented Aug 13, 2018 via email

@daniel-jonathan
Copy link
Member

daniel-jonathan commented Aug 13, 2018

@Parilar Why do you need to switch navigation controllers from TabsController? Let's move to Material Gitter to help you better.

@Parilar
Copy link
Author

Parilar commented Aug 14, 2018

@DanielDahan in #983 you metioned it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants