Skip to content

Commit

Permalink
fix crash on main screen co-ordinator
Browse files Browse the repository at this point in the history
update the following changes:
1. Fix crash on main screen co-ordinator
2. remove extra convenience initialiser from navigator
3. update the unit test class. it is auto generated by Sourcery
  • Loading branch information
kishorepran committed Dec 2, 2023
1 parent ed0045b commit aac807c
Show file tree
Hide file tree
Showing 3 changed files with 655 additions and 134 deletions.
1 change: 0 additions & 1 deletion animeal/src/Flows/Main/Coordinator/MainCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ final class MainCoordinator: Coordinatable {
func start() {
presentingWindow.rootViewController = rootTabBarController
rootTabBarController.selectHomeTab()
_navigator.push(rootTabBarController, animated: false, completion: nil)
presentingWindow.makeKeyAndVisible()
}

Expand Down
4 changes: 0 additions & 4 deletions animeal/src/Navigation/Navigator/Navigator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public final class Navigator: Navigating {
self.init(navigationController: navigationController, rootViewControllerIndex: max(0, index))
}

convenience init() {
self.init(navigationController: UINavigationController(), rootViewControllerIndex: 0)
}

// MARK: - Child flow creation
func makeChildNavigator() -> Navigating? {
guard let navigationController = navigationController else {
Expand Down
Loading

0 comments on commit aac807c

Please sign in to comment.