From 9d4bc90d25d2fd9f130918474841a1d44bbbb4bb Mon Sep 17 00:00:00 2001 From: juyeongno1 Date: Mon, 25 Mar 2024 23:57:34 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A9=20::=20WriteReviewViewController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/MyPage/MyPageViewController.swift | 11 +++++-- .../WriteReviewViewController.swift | 29 ++++++++++++++++--- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/Projects/Presentation/Sources/MyPage/MyPageViewController.swift b/Projects/Presentation/Sources/MyPage/MyPageViewController.swift index b968fc13..1e939f17 100644 --- a/Projects/Presentation/Sources/MyPage/MyPageViewController.swift +++ b/Projects/Presentation/Sources/MyPage/MyPageViewController.swift @@ -116,11 +116,16 @@ public final class MyPageViewController: BaseViewController { self.viewWillAppearPublisher.asObservable() .subscribe(onNext: { [weak self] in self?.showTabbar() + self?.setLargeTitle(title: "마이페이지") }) .disposed(by: disposeBag) - } - public override func configureNavigation() { - self.setLargeTitle(title: "마이페이지") + self.viewWillDisappearPublisher.asObservable() + .bind { + self.setSmallTitle(title: "") + } + .disposed(by: disposeBag) } + + public override func configureNavigation() { } } diff --git a/Projects/Presentation/Sources/WriteReview/WriteReviewViewController.swift b/Projects/Presentation/Sources/WriteReview/WriteReviewViewController.swift index 6d7628a0..bd7c0507 100644 --- a/Projects/Presentation/Sources/WriteReview/WriteReviewViewController.swift +++ b/Projects/Presentation/Sources/WriteReview/WriteReviewViewController.swift @@ -7,13 +7,34 @@ import Core import DesignSystem public final class WriteReviewViewController: BaseViewController { - public override func addView() { } + private let titleLabel = UILabel().then { + $0.setJobisText( + "다른 학생들을 위하여\n면접의 후기를 작성해주세요", + font: .pageTitle, + color: .GrayScale.gray90 + ) + $0.numberOfLines = 0 + } + public override func addView() { + [ + titleLabel + ].forEach(self.view.addSubview(_:)) + } - public override func setLayout() { } + public override func setLayout() { + titleLabel.snp.makeConstraints { + $0.leading.trailing.equalToSuperview().inset(24) + $0.top.equalTo(view.safeAreaLayoutGuide).inset(20) + } + } public override func configureViewController() { - setLargeTitle(title: "다른 학생들을 위하여 면접의 후기를 작성해주세요") + viewWillAppearPublisher.asObservable() + .bind { + self.navigationController?.navigationBar.prefersLargeTitles = false + } + .disposed(by: disposeBag) } - public override func configureNavigation() { } + public override func configureNavigation() {} }