-
Notifications
You must be signed in to change notification settings - Fork 87
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
Swipe from left to right to go back #8
Comments
Hi @GaniduAsh , thanks for asking. Unfortunately, at the moment, there's no easy way to get the "swipe to pop" feature with |
Yeah i Noticed it. I think the reason is having your own navigation stack as its hard to maintain all the features that default iOS navigation has, hence i used UIViewControllerRepresentable and the stack which comes with UINavigation. |
I would like to have that swipe to pop gesture, and would help to implement the same, I am new to SwiftUI coming from Android, but not having this swipe gesture does not feel like iOS to me when implementing this Navigation Stack, apart from that it works smooth and easy to integrate. |
But its the default iOS behavior and its a must feature in apple . I would
suggest to integrate it as i mentioned earlier
…On Mon, Mar 16, 2020 at 14:09, Divyanshu Negi ***@***.***> wrote:
I would like to have that swipe to pop gesture, and would help to
implement the same, I am new to SwiftUI coming from Android, but not having
this swipe gesture does not feel like iOS to me when implementing this
Navigation Stack, apart from that it works smooth and easy to integrate.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2I7ZH4SZ6XLAN5SK3XPJDRHXQVZANCNFSM4K4YTDZQ>
.
|
Is there any solution for this case? |
@JuanVeGu-Ionix Unfortunately not yet. |
To solve this, for the moment, I get the swipe gesture to the right and pass it the pop() method 😬 |
@JuanVeGu-Ionix but I think this approach is not the same as the default iOS behavior. I mean you cannot swipe the current screen back and forth, right? Would also love to see this feature! |
@JuanVeGu-Ionix It would be great if you showed us how you've implemented this feature. We could find a way to integrate your implementation in this project. Thanks. |
It's probably something like this where the |
Yes, I created a ViewModifier with the next structured
I know, it's not the right answer, but it works for me |
Trying to implement a custom navigation as the NavigationView that SwiftUI supports doesnt provide many features,
Notice the one in here is quite impressive. But I noticed this doesnt have the feature to go back to the previous screen by dragging left to right (default go back feature that iOS provides)
Is there a way to get it done ?
The text was updated successfully, but these errors were encountered: