FormattedTimeLabelGenerator

public struct FormattedTimeLabelGenerator : TimeLabelGenerator

Formats time labels using an optional date formatter object.

  • Undocumented

    Declaration

    Swift

    public init(_ formatter: DateFormatter? = nil)
  • Undocumented

    Declaration

    Swift

    public var formatter: DateFormatter?
  • Returns strings computed using the specified formatter object, passing the start time of each interval as input.

    Declaration

    Swift

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