BaseNavigator

A class that implements NavigatorProtocol to manage navigation and loading states within the app.

  • The main application window.

  • Returns the top-most view controller in the navigation stack.

  • Returns the top-most UINavigationController in the navigation stack, if available.

  • Returns the UITabBarController if it is the root or top-most controller.

  • Finds a specific view controller type in the view controller hierarchy.

  • Displays or hides a loading indicator.

  • Initializes the navigator, optionally with a specific UIWindow.