EnterpriseDS Documentation

Protocol DSDate​Picker​Delegate

@objc public protocol DSDatePickerDelegate  

A delegate that is notified of various events that occur from DSDatePicker.

Optional Requirements

date​Did​Change(_:​date:​)

@objc optional func dateDidChange(_ picker: DSDatePicker, date: Date?) 

Called when a date is changed/selected in the modal picker.

Parameters

select

The DSDatePicker the value changed for

value

The new value

date​Picker​Tapped(_:​)

@objc optional func datePickerTapped(_ picker: DSDatePicker) 

Called when a DSDatePicker is tapped and should display its modal picker.

Parameters

select

The DSDatePicker being referred to

date​Picker​Control​Dismissed(_:​)

@objc optional func datePickerControlDismissed(_ picker: DSDatePicker) 

Called when a DSDatePicker dismisses its modal picker.

Parameters

select

The DSDatePicker being referred to