From 06cff52c11632b204fafc3e4eac6fd85bdd47a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EA=B2=BD=EB=AF=BC?= <74659491+meenyweeny@users.noreply.github.com> Date: Sat, 30 Jul 2022 00:40:49 +0900 Subject: [PATCH] =?UTF-8?q?[#142]=20=ED=95=A8=EC=88=98=20=EC=A0=95?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CheckTimeTravelDetailViewController.swift | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Deartoday/Deartoday/Screen/CheckTimeTravelDetail/Controller/CheckTimeTravelDetailViewController.swift b/Deartoday/Deartoday/Screen/CheckTimeTravelDetail/Controller/CheckTimeTravelDetailViewController.swift index f740801..3c0b71e 100644 --- a/Deartoday/Deartoday/Screen/CheckTimeTravelDetail/Controller/CheckTimeTravelDetailViewController.swift +++ b/Deartoday/Deartoday/Screen/CheckTimeTravelDetail/Controller/CheckTimeTravelDetailViewController.swift @@ -32,10 +32,6 @@ final class CheckTimeTravelDetailViewController: UIViewController { getTravelInfo(timeTravelId: timeTravelID) } - override func viewDidLayoutSubviews() { - super.viewDidLayoutSubviews() - } - // MARK: - Custom Method private func setUI() { @@ -50,6 +46,11 @@ final class CheckTimeTravelDetailViewController: UIViewController { registerXib() } + private func setCollectionViewLayout() { + collectionViewFlowLayout.scrollDirection = .vertical + collectionViewFlowLayout.sectionHeadersPinToVisibleBounds = true + } + // MARK: - IBAction @IBAction func backButtonDidTap(_ sender: Any) { @@ -119,8 +120,7 @@ extension CheckTimeTravelDetailViewController: UICollectionViewDataSource { headerView.titleLabel?.text = travelInfo?.title ?? "" headerView.pastDateLabel?.text = "\(travelInfo?.year ?? 0).\(travelInfo?.month ?? 0).\(travelInfo?.day ?? 0)" headerView.writtenDateLabel?.text = travelInfo?.writtenDate ?? "" - headerView.titleLabel.setTextWithLineHeight(text: headerView.titleLabel.text, - lineHeight: 26) + headerView.titleLabel.setTextWithLineHeight(text: headerView.titleLabel.text, lineHeight: 26) return headerView default: return UICollectionReusableView() } @@ -221,9 +221,4 @@ extension CheckTimeTravelDetailViewController { collectionView.register(presentXib, forCellWithReuseIdentifier: PresentDialogCollectionViewCell.identifier) } - - private func setCollectionViewLayout() { - collectionViewFlowLayout.scrollDirection = .vertical - collectionViewFlowLayout.sectionHeadersPinToVisibleBounds = true - } }