Skip to content

Conversation

@lsj8706
Copy link
Collaborator

@lsj8706 lsj8706 commented Jan 11, 2023

🌱 작업한 내용

  • 코스 발견에서 코스 업로드를 하기 위해 내가 그린 코스들 중에서 아직 업로드를 하지 않은 코스들을 가져오는 API를 연결했습니다.

🌱 PR Point

  • 코스 업로드 VC 로 받아온 CourseModel을 보내도록 했으니 CourseUpload API를 연결할 때 해당 모델에서 id 값을 가져와 업로드를 진행하면 될 것 같습니다~!

📸 스크린샷

구현 내용 스크린샷
코스 불러오기 Simulator Screen Recording - iPhone 14 - 2023-01-11 at 13 03 19

📮 관련 이슈

@lsj8706 lsj8706 added Feat 새로운 기능 구현 세진☃️ labels Jan 11, 2023
@lsj8706 lsj8706 self-assigned this Jan 11, 2023
Copy link
Contributor

@dlwogus0128 dlwogus0128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

대박~~~~

self.mapImageView.setImage(with: courseModel.image)

guard let distance = courseModel.distance else { return }
self.distanceInfoView.setDescriptionText(description: "\(String(distance))km")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헉.. 계속 attributedString 만들어서 append하고 있었는데.. 이렇게..해야지..나도..

func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let cellWidth = (UIScreen.main.bounds.width - (self.itemSpacing + 2*self.collectionViewInset.left)) / 2
let cellHeight = CourseListCVCType.getCellHeight(type: .titleWithLocation, cellWidth: cellWidth)
let cellHeight = CourseListCVCType.getCellHeight(type: .title, cellWidth: cellWidth)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헉 이거 함수 만들었규나

@lsj8706 lsj8706 merged commit b939f93 into Runnect:develop Jan 11, 2023
@lsj8706 lsj8706 deleted the feat/#79-업로드하지않은-내가그린코스-API branch January 11, 2023 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feat 새로운 기능 구현 세진☃️

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feat] 코스 불러오기의 내가 그린 코스 API 연결

2 participants