Swipe to dismiss not working
See original GitHub issueI’m unable to get the swipe to dismiss feature to work at all. Here’s my code:
render() {
return (
<Modal
isVisible={this.props.visible}
onSwipe={() => this.props.onShouldClose()}
swipeDirection="left"
>
{this.renderCard()}
</Modal>
);
}
Pretty sure I’ve followed the instructions correctly but swiping does not work at all, any help would be appreciated 😃
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:7 (5 by maintainers)
Top Results From Across the Web
couldn't dismiss the swipe down ge… | Apple Developer Forums
i have tried dismissing the swipe down gesture in AVPlayerViewController that closes the controller, but no luck. i think am missing out somthing...
Read more >Support swipe to dismiss for UIViewControllerRepresentable ...
It seems if you use UIViewControllerRepresentable to implement a view controller in your SwiftUI app, when you present it via sheet you cannot ......
Read more >Swipe to dismiss - Android Developers
SwipeToDismissBox is a composable that can be dismissed by swiping right. To use SwipeToDismissBox , you must first create a state. The state...
Read more >Swipe to dismiss not working · Issue #108 · react-native-modal ...
I'm unable to get the swipe to dismiss feature to work at all. Here's my code: render() { return ( this.props.
Read more >How to prevent a sheet from being dismissed with a swipe
SwiftUI provides the interactiveDismissDisabled() modifier to control whether the user can swipe downwards to dismiss a sheet.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In your
onSwipe
method you need to setshowModal
to false in order to hide the modal.That’ll probably be the reason 😄 sorry I should have posted versions with the OP, my bad.
Thanks