DatePickerControllerDelegate

public protocol DatePickerControllerDelegate : AnyObject

The DatePickerController delegate to defime some actions.

  • This func is triggered when the user select a date.

    Declaration

    Swift

    func datePickerController(_ controller: DatePickerController, onSelect date: Date)

    Parameters

    controller

    the current DatePickerController.

    date

    the selected date.

  • Check if the date is selectable.

    Declaration

    Swift

    func datePickerController(_ controller: DatePickerController, isSelectable date: Date) -> Bool

    Parameters

    controller

    the current DatePickerController.

    date

    the date.

    Return Value

    true if the date is selectable, false otherwise.