MessageTimePickerTimeSlot

public struct MessageTimePickerTimeSlot : Equatable, Sendable

A single selectable time slot used by MessageTimePicker

It contains an identifier, duration, and the start date/time for the slot

  • id

    Unique identifier for the time slot.

    Declaration

    Swift

    public let id: String
  • Duration of the time slot, in seconds.

    Declaration

    Swift

    public let duration: Int
  • Start date and time of the slot.

    Declaration

    Swift

    public let startTime: Date

Init

  • Creates a MessageTimePickerTimeSlot.

    Declaration

    Swift

    public init(id: String, duration: Int, startTime: Date)

    Parameters

    id

    Unique identifier for the slot, used to correlate the user’s selection.

    duration

    Slot duration in seconds.

    startTime

    Absolute start date/time of the slot.