voyager
voyager copied to clipboard
"Forward" gesture in view stack?
Not sure if I'm using the right terminologies, apologies in advance.
In Apollo, while viewing a post, if I edge swipe right to go back to the subreddit by accident, I can edge swipe left to go back to the post on the view stack. Similarly, if I was in a subreddit, and I accidentally edge swipe right to go back to the subreddit list, I can edge swipe left to go back to the subreddit I was in.
In Wefwef, it would be really cool if there was a similar stack of views, such that we can move back and forth on different views: Communities list <> Community <> Thread <> etc..
Device: iPhone 14 Pro Max OS: 16.5.1 Browser: Safari
Agreed, that would be cool.
I'm not sure if this is possible in Ionic though. If anyone wants to research and/or look for an existing Ionic issue (or create if none) and then link it here, I would appreciate it.
I took a quick peek and the router can do forward history traversal, but there’s no global swipe feature flag like the back swipe. I suspect if we want this feature, we’d need to implement the swipe target ourselves and then invoke the history.go on the router ourselves: https://ionicframework.com/docs/react/navigation#navigating-using-historygo
@huanga could this be done by using the navbar instead of the edge swipe? Apollo let people do either one but in the mean time only having navbar swipe would be great.
This is how Apollo describes it, basically just swipe left/forward on the bottom navbar to move back into the post or leave the post