Skip to content

Commit

Permalink
[Fix] Runnect#99 - 마이페이지 업로드한 코스 이미지 라운드 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Jan 12, 2023
1 parent 6086d0c commit f11a16d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ final class UploadedCourseInfoCVC: UICollectionViewCell {

private let uploadedCourseMapImage = UIImageView().then {
$0.layer.cornerRadius = 5
$0.clipsToBounds = true
}

private let uploadedCourseTitleLabel = UILabel().then {
Expand All @@ -44,11 +45,9 @@ final class UploadedCourseInfoCVC: UICollectionViewCell {

extension UploadedCourseInfoCVC {
func setData(model: PublicCourse) {
guard let imageURL = URL(string: model.image) else { return }

uploadedCourseMapImage.setImage(with: model.image)
uploadedCourseTitleLabel.text = model.title
setUploadedCoursePlaceLabel(model: model, label: uploadedCoursePlaceLabel)
self.uploadedCourseMapImage.kf.setImage(with: imageURL)
}

func setUploadedCoursePlaceLabel(model: PublicCourse, label: UILabel) {
Expand Down

0 comments on commit f11a16d

Please sign in to comment.