ikew0ng / SwipeBackLayout

An Android library that help you to build app with swipe back gesture.
Apache License 2.0
6.13k stars 1.4k forks source link

Swipe back with Navigation Component #199

Open baonq-2356 opened 2 years ago

baonq-2356 commented 2 years ago

Hello, i have an app designed by navigation component, my app navigates between fragments by navController.navigate() and navController.popBackStack(). Now i want to make a feature that user can swipe to back between current fragment and previous fragment but i didn't have an idea. How can i do it?

massivemadness commented 2 years ago

Hi @baonq-2356, I got stuck with the same problem and decided to make my own library. Here it is https://github.com/massivemadness/Fragula

I wouldn't publish my lib here if this one wasn't abandoned