Skip to content

Commit

Permalink
[#142] 함수 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
meenyweeny committed Jul 29, 2022
1 parent 37c3cf8 commit 06cff52
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ final class CheckTimeTravelDetailViewController: UIViewController {
getTravelInfo(timeTravelId: timeTravelID)
}

override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
}

// MARK: - Custom Method

private func setUI() {
Expand All @@ -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) {
Expand Down Expand Up @@ -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()
}
Expand Down Expand Up @@ -221,9 +221,4 @@ extension CheckTimeTravelDetailViewController {
collectionView.register(presentXib,
forCellWithReuseIdentifier: PresentDialogCollectionViewCell.identifier)
}

private func setCollectionViewLayout() {
collectionViewFlowLayout.scrollDirection = .vertical
collectionViewFlowLayout.sectionHeadersPinToVisibleBounds = true
}
}

0 comments on commit 06cff52

Please sign in to comment.