iOS- Is there a way to call a certain view directly from the code?

If a random test is finished then I would like to go back to our main view directly from the code.

The main view name is ApplicationsViewController so is there a way to call it directly?

Couldn’t this be done via an afterMethod hook, from the test framework you are using?