diff --git a/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift index 6f3948e9..d3560772 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift @@ -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: " ") + + self.courseDepartureInfoView.setDescriptionText(description: locate) self.courseExplanationTextView.text = model.publicCourse.description } diff --git a/Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseUploadVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseUploadVC.swift index b655f479..92eba72f 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseUploadVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseUploadVC.swift @@ -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() {