set defaults to match the view
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
99da32947f
commit
658624aadd
@ -24,6 +24,8 @@ extension DatePicker {
|
||||
/// All other dates will be active.
|
||||
public let inactiveDates: [Date]
|
||||
|
||||
public let selectedDate: Date
|
||||
|
||||
/// If provided, the calendar will allow a selection to be made from this date forward. Defaults to today.
|
||||
public let minDate: Date
|
||||
|
||||
@ -37,13 +39,15 @@ extension DatePicker {
|
||||
hideCurrentDateIndicator: Bool = false,
|
||||
activeDates: [Date] = [],
|
||||
inactiveDates: [Date] = [],
|
||||
minDate: Date = Date().startOfMonth,
|
||||
maxDate: Date = Date().endOfMonth,
|
||||
selectedDate: Date = Date(),
|
||||
minDate: Date = Date(),
|
||||
maxDate: Date = Calendar.current.date(byAdding: .year, value: 10, to: Date())!,
|
||||
indicators: [CalendarBase.CalendarIndicatorModel] = []) {
|
||||
self.hideContainerBorder = hideContainerBorder
|
||||
self.hideCurrentDateIndicator = hideCurrentDateIndicator
|
||||
self.activeDates = activeDates
|
||||
self.inactiveDates = inactiveDates
|
||||
self.selectedDate = selectedDate
|
||||
self.minDate = minDate
|
||||
self.maxDate = maxDate
|
||||
self.indicators = indicators
|
||||
|
||||
Loading…
Reference in New Issue
Block a user