EnclosedTimeIntervalSelector

public class EnclosedTimeIntervalSelector : TimeIntervalSelector

Encloses time intervals generated by a source selector to range within the limits of the input interval.

  • Undocumented

    Declaration

    Swift

    public init(for selector: TimeIntervalSelector)
  • Undocumented

    Declaration

    Swift

    public var selector: TimeIntervalSelector
  • Returns the same time intervals for the given interval as the source selector, except that the intervals that are not fully within the input interval would be cut to match the limits of the argument.

    Declaration

    Swift

    public func times(in interval: TimeRange) -> [TimeRange]