Skip to content

Commit

Permalink
[fix] NavigationBar 뒤로 버튼 텍스트 제거 및 모든 뷰 통일 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongpower committed Dec 8, 2022
1 parent 3765f38 commit ff1d078
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class CustomNavigationController: UINavigationController {

override func viewDidLoad() {
super.viewDidLoad()

applyThemeStyle()
}

Expand All @@ -23,6 +23,7 @@ final class CustomNavigationController: UINavigationController {

navigationBar.titleTextAttributes = [.font: UIFont.themeFont(ofSize: 25) as Any]
navigationBar.tintColor = .themeBlack
navigationBar.topItem?.backButtonTitle = ""
}

func addIndicatorView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ class ProfileButton: UIControl {
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ final class CapsuleDetailCoordinator: Coordinator {
let capsuleDetailViewModel = CapsuleDetailViewModel()
capsuleDetailViewModel.coordinator = self
capsuleDetailViewController.viewModel = capsuleDetailViewModel

navigationController?.pushViewController(capsuleDetailViewController, animated: true)


if let rootVC = navigationController?.viewControllers.first {
navigationController?.viewControllers = [rootVC, capsuleDetailViewController]
navigationController?.setViewControllers([rootVC, capsuleDetailViewController], animated: true)
}

setupNavigationItem()
}

func showCapsuleSettings() {
Expand Down Expand Up @@ -72,10 +68,4 @@ final class CapsuleDetailCoordinator: Coordinator {

parent.hideTabBar()
}

private func setupNavigationItem() {
let backButtonItem = UIBarButtonItem()
backButtonItem.title = "목록"
navigationController?.navigationBar.topItem?.backBarButtonItem = backButtonItem
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ extension DetailImageViewController {
switch item {
case let .data(value):
cell.configure(data: value)

case let .url(value):
cell.configrue(url: value)
}



return cell
})
}
Expand Down

0 comments on commit ff1d078

Please sign in to comment.