TimeLabelGenerator

public protocol TimeLabelGenerator

Computes an optional label to be displayed for any given time interval.

  • An implementation should return a textual value representing the given interval. It may return nil to indicate that the label is not needed for the input interval.

    Declaration

    Swift

    func label(for time: TimeRange) -> String?