TimeScale

public enum TimeScale : Equatable, Hashable

Indicates the granularity for selecting time values on a continuous timeline.

  • Allows any time value to be selected.

    Declaration

    Swift

    case continuous
  • Undocumented

    Declaration

    Swift

    case intervals(period: Double, unit: TimeUnit, origin: Time, rule: FloatingPointRoundingRule)
  • Rounds any time value to be selected matching the end of an interval defined by the specified arguments.

    Declaration

    Swift

    public static func intervalsWith(
        period: Double, in unit: TimeUnit = .seconds, origin: Time = .reference,
        rule: FloatingPointRoundingRule = .toNearestOrAwayFromZero) -> TimeScale