-
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
after pop,the previous scrollview auto scroll to top? #81
Comments
well,i find a solution which mat be a little ugly but work :) we can change how navigationview show .if the view is not current view ,we set its opacity to 0,in this case ,the view is still there, when it come to top,swiftui wont redraw it .
to do this ,you need to remove 'private' before may properties. like viewstack,views. |
it's a little bit track , and may have other bug. |
not work!this can only keep root view not change ,but other view in foreach still redraw every time. |
well , i found another ugly solution.in this way,you should mannully set the stack depth. { |
just list every view out,and set the opt decide on current depth |
It looks like the references to the views are released whenever we push another view on top in this library. This is opposite to what native SwiftUI and UIKit do. Views should usually remain in memory until removed from the stack. Use a similar library like https://github.com/AlexRoar/PathPresenter which follows the usual standards. |
how can i keep scrollview at the old posiiton after pop?
The text was updated successfully, but these errors were encountered: