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 @@ -309,8 +309,17 @@ extension CourseDetailVC {

guard let distance = model.publicCourse.distance else { return }
self.courseDistanceInfoView.setDescriptionText(description: "\(distance)km")
let location = "\(model.publicCourse.departure.region) \(model.publicCourse.departure.city)"
self.courseDepartureInfoView.setDescriptionText(description: location)

let locate = [
model.publicCourse.departure.region,
model.publicCourse.departure.city,
model.publicCourse.departure.town,
model.publicCourse.departure.name
]
.compactMap { $0 }
.joined(separator: " ")
Comment on lines +313 to +320
Copy link
Collaborator

Choose a reason for hiding this comment

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

코드 깔꼼하네요 👍🏻


self.courseDepartureInfoView.setDescriptionText(description: locate)
self.courseExplanationTextView.text = model.publicCourse.description
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,17 @@ extension CourseUploadVC {

guard let distance = courseModel.distance else { return }
self.distanceInfoView.setDescriptionText(description: "\(String(distance))km")
self.departureInfoView.setDescriptionText(description: "\(courseModel.departure.region) \(courseModel.departure.city)")

let departureString = [
courseModel.departure.region,
courseModel.departure.city,
courseModel.departure.town,
courseModel.departure.name
]
.compactMap { $0 }
.joined(separator: " ")

self.departureInfoView.setDescriptionText(description: departureString)
}

private func setAddTarget() {
Expand Down