Add event to detect when a swipe gesture start to close the modal.
onClosed is triggered only once the closing animation is finished. onSwipeToClose allows to know when the closing animation is starting. It's useful in some case when you want to sync parallel animations.
Add event to detect when a swipe gesture start to close the modal.
onClosed
is triggered only once the closing animation is finished.onSwipeToClose
allows to know when the closing animation is starting. It's useful in some case when you want to sync parallel animations.