NavControllersetRoot
NavControllersetRoot is a method used in certain mobile application development frameworks, particularly those utilizing navigation stacks or hierarchies. Its primary function is to replace the entire current navigation stack with a new root view controller. This effectively clears out all previously presented screens and establishes a fresh starting point for the user's navigation.
When NavControllersetRoot is invoked, the existing view controller hierarchy managed by the navigation controller is discarded.
The immediate effect of calling NavControllersetRoot is that the user is presented with the new root view