Coordinator icon indicating copy to clipboard operation
Coordinator copied to clipboard

Could not resolve a root view controller.

Open trunghvbk opened this issue 1 year ago • 0 comments

Sometimes when I run the app, this runtime-warning happens, and I don't know why. I searched on the issue list and it seems no one has the same issue. Please help to check this. Thanks. image The code of the Router is something like this

enum MainScreen {
    case pop
    case accountView
}

class MainRouter: UIViewControllerCoordinator<MainScreen> {
    override func transition(for route: MainScreen) -> ViewTransition {
        switch route {
        case .pop:
            return .dismiss
        case .accountView:
            return .push(AccountViewFactory(checkedUser: true))
        }
    }
}

trunghvbk avatar May 27 '24 02:05 trunghvbk