From 1ba09ee3667e8332e80b63581666fe9572e48618 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 21 Jun 2024 15:00:03 -0500 Subject: [PATCH] added calendar Signed-off-by: Matt Bruce --- VDSSample/ViewControllers/CheckboxViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VDSSample/ViewControllers/CheckboxViewController.swift b/VDSSample/ViewControllers/CheckboxViewController.swift index bd223ad..1d28267 100644 --- a/VDSSample/ViewControllers/CheckboxViewController.swift +++ b/VDSSample/ViewControllers/CheckboxViewController.swift @@ -29,7 +29,9 @@ class CheckboxViewController: BaseViewController { addFormRow(label: "Disabled", view: disabledSwitch) addFormRow(label: "Surface", view: surfacePickerSelectorView) addFormRow(label: "Error", view: showErrorSwitch) - + addFormRow(label: "Calendar", view: VDS.DatePicker().with { + $0.calendarModel = .init(minDate: Date().startOfMonth, maxDate: Calendar.current.date(byAdding: .month, value: 2, to: Date())!) + }) showErrorSwitch.onChange = { [weak self] sender in guard let self else { return } self.component.showError = sender.isOn