Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,9 @@ extension GoalRewardInfoCVC {
private func setLayout() {
contentView.addSubviews(stampImageView, stampStandardLabel)

contentView.snp.makeConstraints { make in
make.top.equalToSuperview()
make.centerX.equalToSuperview()
make.leading.equalToSuperview()
make.height.equalTo(112)
}

stampImageView.snp.makeConstraints { make in
make.top.leading.trailing.equalToSuperview()
make.width.equalTo(90)
make.height.equalTo(contentView.snp.width)
}

stampStandardLabel.snp.makeConstraints { make in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ extension GoalRewardInfoVC: UICollectionViewDelegateFlowLayout {
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let screenWidth = UIScreen.main.bounds.width
let tripleCellWidth = screenWidth - stampInset.left - stampInset.right - stampItemSpacing * 2
return CGSize(width: tripleCellWidth / 3, height: 112)
let cellHeight = tripleCellWidth / 3 + 22
return CGSize(width: tripleCellWidth / 3, height: cellHeight)
}

func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,9 @@ extension UploadedCourseInfoCVC {
private func setLayout() {
contentView.addSubviews(uploadedCourseMapImage, uploadedCourseTitleLabel, uploadedCoursePlaceLabel)

contentView.snp.makeConstraints { make in
make.top.leading.equalToSuperview()
}

uploadedCourseMapImage.snp.makeConstraints { make in
make.top.leading.equalToSuperview()
make.width.equalTo(174)
make.height.equalTo(124)
make.top.leading.trailing.equalToSuperview()
make.height.equalTo(contentView.snp.width).multipliedBy(0.7)
}

uploadedCourseTitleLabel.snp.makeConstraints { make in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ extension UploadedCourseInfoVC: UICollectionViewDelegateFlowLayout {
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let screenWidth = UIScreen.main.bounds.width
let doubleCellWidth = screenWidth - uploadedCourseInset.left - uploadedCourseInset.right - uploadedCourseItemSpacing
return CGSize(width: doubleCellWidth / 2, height: 164)
let cellHeight = (doubleCellWidth / 2) * 0.7 + 36
return CGSize(width: doubleCellWidth / 2, height: cellHeight)
}

func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
Expand Down