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.
|
/// All other dates will be active.
|
||||||
public let inactiveDates: [Date]
|
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.
|
/// If provided, the calendar will allow a selection to be made from this date forward. Defaults to today.
|
||||||
public let minDate: Date
|
public let minDate: Date
|
||||||
|
|
||||||
@ -37,13 +39,15 @@ extension DatePicker {
|
|||||||
hideCurrentDateIndicator: Bool = false,
|
hideCurrentDateIndicator: Bool = false,
|
||||||
activeDates: [Date] = [],
|
activeDates: [Date] = [],
|
||||||
inactiveDates: [Date] = [],
|
inactiveDates: [Date] = [],
|
||||||
minDate: Date = Date().startOfMonth,
|
selectedDate: Date = Date(),
|
||||||
maxDate: Date = Date().endOfMonth,
|
minDate: Date = Date(),
|
||||||
|
maxDate: Date = Calendar.current.date(byAdding: .year, value: 10, to: Date())!,
|
||||||
indicators: [CalendarBase.CalendarIndicatorModel] = []) {
|
indicators: [CalendarBase.CalendarIndicatorModel] = []) {
|
||||||
self.hideContainerBorder = hideContainerBorder
|
self.hideContainerBorder = hideContainerBorder
|
||||||
self.hideCurrentDateIndicator = hideCurrentDateIndicator
|
self.hideCurrentDateIndicator = hideCurrentDateIndicator
|
||||||
self.activeDates = activeDates
|
self.activeDates = activeDates
|
||||||
self.inactiveDates = inactiveDates
|
self.inactiveDates = inactiveDates
|
||||||
|
self.selectedDate = selectedDate
|
||||||
self.minDate = minDate
|
self.minDate = minDate
|
||||||
self.maxDate = maxDate
|
self.maxDate = maxDate
|
||||||
self.indicators = indicators
|
self.indicators = indicators
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user