canopas/UIPilot

Can this support be added?

rahul-furlenco opened this issue · 1 comments

To check if a UIViewController is present in the navigation stack and then push or pop to it accordingly. Will be appreciated if yo you can provide a solution.

Hello @rahul-furlenco, Yes, it's possible, just need to check with the pilot's route array whether the given view exists or not in the route array.
i.e: if pilot.routes.contains(.Home) { ... }