Skip to content
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

Clear Stack feature #36

Open
ia-ghislain opened this issue Dec 21, 2020 · 3 comments
Open

Clear Stack feature #36

ia-ghislain opened this issue Dec 21, 2020 · 3 comments

Comments

@ia-ghislain
Copy link

Maybe an implementation of a function that clears the ViewStack

When called it will :

  • Set the last view as Root View
  • Clear the stack
@ch05en
Copy link

ch05en commented Mar 10, 2021

Yes I need this

@Sadmansamee
Copy link
Contributor

Sadmansamee commented Jul 12, 2021

is there any idea how can we implement this? @matteopuc

@pqnet
Copy link

pqnet commented Jul 12, 2021

you can specify a destination: parameter to the PopView constructor which will remove all the views from the stack until it reaches the specified one, or you can use the .root value to pop all views until root.
The pop method of navigation stack also has a similar parameter which defaults to .previous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants