Protocol
DSDatePickerDelegate
@objc public protocol DSDatePickerDelegate
A delegate that is notified of various events that occur from DSDatePicker.
Optional Requirements
dateDidChange(_:date:)
@objc optional func dateDidChange(_ picker: DSDatePicker, date: Date?)
Called when a date is changed/selected in the modal picker.
Parameters
Name | Type | Description |
---|---|---|
select | The DSDatePicker the value changed for |
|
value | The new value |
datePickerTapped(_:)
@objc optional func datePickerTapped(_ picker: DSDatePicker)
Called when a DSDatePicker is tapped and should display its modal picker.
Parameters
Name | Type | Description |
---|---|---|
select | The DSDatePicker being referred to |
datePickerControlDismissed(_:)
@objc optional func datePickerControlDismissed(_ picker: DSDatePicker)
Called when a DSDatePicker dismisses its modal picker.
Parameters
Name | Type | Description |
---|---|---|
select | The DSDatePicker being referred to |