diff --git a/HMH_iOS/HMH_iOS/Presentation/Challenge/ViewControllers/ChallengeViewController.swift b/HMH_iOS/HMH_iOS/Presentation/Challenge/ViewControllers/ChallengeViewController.swift index 6dafab9..8c2636b 100644 --- a/HMH_iOS/HMH_iOS/Presentation/Challenge/ViewControllers/ChallengeViewController.swift +++ b/HMH_iOS/HMH_iOS/Presentation/Challenge/ViewControllers/ChallengeViewController.swift @@ -51,6 +51,7 @@ final class ChallengeViewController: UIViewController { extension ChallengeViewController: UICollectionViewDelegate {} extension ChallengeViewController: UIScrollViewDelegate { + func scrollViewWillBeginDecelerating(_ scrollView: UIScrollView) { if scrollView.panGestureRecognizer.translation(in: scrollView).y < 0 { UIView.animate(withDuration: 0.3, animations: { @@ -62,6 +63,4 @@ extension ChallengeViewController: UIScrollViewDelegate { }) } } - - } diff --git a/HMH_iOS/HMH_iOS/Presentation/Challenge/Views/ChallengeView.swift b/HMH_iOS/HMH_iOS/Presentation/Challenge/Views/ChallengeView.swift index 9b3a98c..3967c8e 100644 --- a/HMH_iOS/HMH_iOS/Presentation/Challenge/Views/ChallengeView.swift +++ b/HMH_iOS/HMH_iOS/Presentation/Challenge/Views/ChallengeView.swift @@ -54,7 +54,6 @@ final class ChallengeView: UIView { } func setConstraints() { - challengeCollectionView.snp.makeConstraints { $0.edges.equalToSuperview() } @@ -74,6 +73,7 @@ final class ChallengeView: UIView { } extension ChallengeView: UICollectionViewDataSource { + func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { switch section{ case 0: @@ -125,6 +125,7 @@ extension ChallengeView: UICollectionViewDataSource { extension ChallengeView { + func createDateLayout() -> NSCollectionLayoutSection { let itemSize = NSCollectionLayoutSize(widthDimension: .absolute(40), heightDimension: .absolute(63))