TravelTimePanelDelegate

@objc
public protocol TravelTimePanelDelegate : AnyObject

The delegate of a TravelTimePanel object must adopt the TravelTimePanelDelegate protocol to get notified on updates.

  • Tells the delegate the date was updated.

    Declaration

    Swift

    func travelTimePanel(_ panel: TravelTimePanel, didUpdate date: Date)

    Parameters

    panel

    The panel notifying the delegate about the date update.

    date

    The updated date.

  • Tells the delegate the panel is about to present the travel time picker.

    A travel time panel sends this message to its delegate just before it presents a travel time picker, thereby permitting the delegate to customize the picker object before it is displayed. This method gives the delegate a chance to override state-based properties, such as background and text colors.

    Declaration

    Swift

    @objc
    optional func travelTimePanel(_ panel: TravelTimePanel, willDisplay pickerViewController: TravelTimePicker)

    Parameters

    panel

    The panel presenting the travel time picker view controller.

    pickerViewController

    The travel time picker to be presented.