Transitions
To use the transitions you should first import cafe.adriel.voyager:voyager-transitions
(see Setup).
Voyager has built-in transitions! When initializing the Navigator
you can override the default content and use, for example, the SlideTransition
.
Available transitions
|
|
|
Custom transitions
It's simple to add your own transitions: call ScreenTransition
with a custom transitionModifier
. Use the available params (screen
, transition
and event
) to animate as needed.
Take a look at the source of the available transitions for working examples.
Last updated