From 25ad87ddacc9f81e06d010d666ffbc285f2e681a Mon Sep 17 00:00:00 2001 From: chemi Date: Mon, 4 Mar 2024 22:07:19 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#604)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Screens/Detail-Wait/UIComponent/CalendarView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Manito/Manito/Screens/Detail-Wait/UIComponent/CalendarView.swift b/Manito/Manito/Screens/Detail-Wait/UIComponent/CalendarView.swift index 8b7254d5..31628a9c 100644 --- a/Manito/Manito/Screens/Detail-Wait/UIComponent/CalendarView.swift +++ b/Manito/Manito/Screens/Detail-Wait/UIComponent/CalendarView.swift @@ -152,15 +152,15 @@ final class CalendarView: UIView { let isFirstClickPastDate = self.calendar.selectedDates[0] < self.calendar.selectedDates[1] if isFirstClickPastDate { - self.setSelecteDate(startIndex: 0, + self.setSelectedDate(startIndex: 0, endIndex: 1) } else { - self.setSelecteDate(startIndex: 1, + self.setSelectedDate(startIndex: 1, endIndex: 0) } } - private func setSelecteDate(startIndex: Int, endIndex: Int) { + private func setSelectedDate(startIndex: Int, endIndex: Int) { var startDate = self.calendar.selectedDates[startIndex] while startDate < self.calendar.selectedDates[endIndex] { guard let addDate = Calendar.current.date(byAdding: .day,