Skip to content

Commit

Permalink
[Chore/#19] Challenge - code Convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Jan 6, 2024
1 parent da27812 commit 076ae59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -62,6 +63,4 @@ extension ChallengeViewController: UIScrollViewDelegate {
})
}
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ final class ChallengeView: UIView {
}

func setConstraints() {

challengeCollectionView.snp.makeConstraints {
$0.edges.equalToSuperview()
}
Expand All @@ -74,6 +73,7 @@ final class ChallengeView: UIView {
}

extension ChallengeView: UICollectionViewDataSource {

func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
switch section{
case 0:
Expand Down Expand Up @@ -125,6 +125,7 @@ extension ChallengeView: UICollectionViewDataSource {


extension ChallengeView {

func createDateLayout() -> NSCollectionLayoutSection {
let itemSize = NSCollectionLayoutSize(widthDimension: .absolute(40),
heightDimension: .absolute(63))
Expand Down

0 comments on commit 076ae59

Please sign in to comment.