You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user tapping a back button is easy to capture and generate and action that updates the State Path which causes the UI change.
I can capture a back navigation by doing the awkward viewWillDisappear/isMovingFromParentViewController dance, but updating the route is difficult unless the VC is aware of its exact position in the stack. If you’re using url-style strings, you could try to chop the last path component off, but there’s no guarantee this is the right route. If you’re using enums like any right-minded string-phobic Swift dev, you’re SOL.
The only place the parent route is reliably known is in the router stack, but there doesn’t seem to be any sensible way to access this. Is this something anyone has managed to solve?
The text was updated successfully, but these errors were encountered:
The Readme sez:
I can capture a back navigation by doing the awkward
viewWillDisappear
/isMovingFromParentViewController
dance, but updating the route is difficult unless the VC is aware of its exact position in the stack. If you’re using url-style strings, you could try to chop the last path component off, but there’s no guarantee this is the right route. If you’re using enums like any right-minded string-phobic Swift dev, you’re SOL.The only place the parent route is reliably known is in the router stack, but there doesn’t seem to be any sensible way to access this. Is this something anyone has managed to solve?
The text was updated successfully, but these errors were encountered: