Skip to content

Commit

Permalink
[CHORE] alert 함수 분리 (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
MMMIIIN committed Dec 7, 2023
1 parent d2e0356 commit af3f5af
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ final class CalendarView: UIView {
func getTempEndDate() -> String {
return self.tempEndDateText
}

private func showAlertOverDateSelect() {
self.viewController?.makeAlert(title: TextLiteral.Common.Calendar.maxAlertTitle.localized(),
message: TextLiteral.Common.Calendar.maxDateContent.localized())
}
}

extension CalendarView: FSCalendarDelegate {
Expand All @@ -222,8 +227,7 @@ extension CalendarView: FSCalendarDelegate {
DispatchQueue.main.async {
calendar.deselect(date)
}
self.viewController?.makeAlert(title: TextLiteral.Common.Calendar.maxAlertTitle.localized(),
message: TextLiteral.Common.Calendar.maxDateContent.localized())
self.showAlertOverDateSelect()
} else {
self.tempEndDateText = date.toDefaultString
self.setDateRange()
Expand Down

0 comments on commit af3f5af

Please sign in to comment.