Skip to content

Commit

Permalink
Refactor event/news details configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
matax87 committed Dec 6, 2024
1 parent 707c4ed commit 6c86e4b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ private extension AppCoordinator {
self?.showNewsAskAQuestion(for: $0, from: pageVC)
}

pageVC.navigationItem.title = nil
pageVC.navigationItem.largeTitleDisplayMode = .never
pageVC.navigationItem.leftBarButtonItem = UIBarButtonItem(
image: UIImage(systemName: "xmark.circle.fill"),
primaryAction: UIAction { [weak pageVC] _ in
Expand Down Expand Up @@ -320,8 +318,7 @@ private extension AppCoordinator {

self?.signupEvent($0, from: pageVC)
}
pageVC.navigationItem.title = nil
pageVC.navigationItem.largeTitleDisplayMode = .never

pageVC.navigationItem.leftBarButtonItem = UIBarButtonItem(
image: UIImage(systemName: "xmark.circle.fill"),
primaryAction: UIAction { [weak pageVC] _ in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ private extension EventsCoordinator {
pageVC.signupActionHandler = { [weak self] in
self?.signupEvent($0)
}

pageVC.navigationItem.largeTitleDisplayMode = .never

return pageVC
}()
navigationController.pushViewController(pageVC, animated: true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ final class EventPageViewController: BasePageViewController<EventDetailsViewMode
override func configureLayout() {
super.configureLayout()

navigationItem.largeTitleDisplayMode = .never
embedChild(containerViewController)
}

Expand Down
3 changes: 0 additions & 3 deletions NOICommunity/NewsFeature/Coordinators/NewsCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ private extension NewsCoordinator {
pageVC.askQuestionActionHandler = { [weak self] in
self?.showAskAQuestion(for: $0)
}

pageVC.navigationItem.largeTitleDisplayMode = .never

return pageVC
}()
navigationController.pushViewController(pageVC, animated: true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ final class NewsPageViewController: BasePageViewController<NewsDetailsViewModel>
override func configureLayout() {
super.configureLayout()

navigationItem.largeTitleDisplayMode = .never
embedChild(containerViewController)
}

Expand Down

0 comments on commit 6c86e4b

Please sign in to comment.