Skip to content

Commit

Permalink
[CHORE] 오타 수정 (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
MMMIIIN committed Mar 4, 2024
1 parent 34a46d2 commit 25ad87d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 25ad87d

Please sign in to comment.