Skip to content

Commit

Permalink
[refactor] AppCoordinator에서 변경사항에 따라서, 메서드->계산프로퍼티 사용으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jinwoong16 committed Nov 16, 2022
1 parent 3fef696 commit 8a5275d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DailyQuest/DailyQuest/Application/AppCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class AppCoordinator: NSObject, TabCoordinator, UITabBarControllerDelegate
private func prepareTabBarController(withTabControllers tabControllers: [UIViewController]) {
tabBarController.delegate = self
tabBarController.setViewControllers(tabControllers, animated: true)
tabBarController.selectedIndex = TabBarPage.home.pageOrderNumber()
tabBarController.selectedIndex = TabBarPage.home.pageOrderNumber
tabBarController.tabBar.isTranslucent = false

}
Expand All @@ -38,9 +38,9 @@ final class AppCoordinator: NSObject, TabCoordinator, UITabBarControllerDelegate
let navController = UINavigationController()
navController.setNavigationBarHidden(false, animated: false)

navController.tabBarItem = UITabBarItem.init(title: page.pageTitleValue(),
image: page.pageIcon(),
tag: page.pageOrderNumber())
navController.tabBarItem = UITabBarItem.init(title: page.pageTitleValue,
image: page.pageIcon,
tag: page.pageOrderNumber)

switch page {
case .home:
Expand Down

0 comments on commit 8a5275d

Please sign in to comment.