ContinuousSortFunction

public struct ContinuousSortFunction: PositionSortFunction

A SortFunction that has variable interObjectDelay values. Unlike other SortFunction implementations, for the ContinuousSortFunction you specify a duration and the SortFunction will compute the necessary interObjectDelay values for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: Though interObjectDelay is a value on this sort function, it will not be used. - Note: The delay values used will be calculated and relative based on how far those views are from the selected position. This means that the animation will look a little smoother if you are using it with large scale numbers of subviews.

  • A SortFunction that has variable interObjectDelay values. Unlike other SortFunction implementations, for the ContinuousSortFunction you specify a duration and the SortFunction will compute the necessary interObjectDelay values for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: Though interObjectDelay is a value on this sort function, it will not be used. - Note: The delay values used will be calculated and relative based on how far those views are from the selected position. This means that the animation will look a little smoother if you are using it with large scale numbers of subviews.

    Declaration

    Swift

    public var interObjectDelay: TimeInterval = 0.0
  • Undocumented

    Declaration

    Swift

    public struct ContinuousSortFunction: PositionSortFunction
  • A SortFunction that has variable interObjectDelay values. Unlike other SortFunction implementations, for the ContinuousSortFunction you specify a duration and the SortFunction will compute the necessary interObjectDelay values for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: Though interObjectDelay is a value on this sort function, it will not be used. - Note: The delay values used will be calculated and relative based on how far those views are from the selected position. This means that the animation will look a little smoother if you are using it with large scale numbers of subviews.

    Declaration

    Swift

    public var position: Position
  • A SortFunction that has variable interObjectDelay values. Unlike other SortFunction implementations, for the ContinuousSortFunction you specify a duration and the SortFunction will compute the necessary interObjectDelay values for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: Though interObjectDelay is a value on this sort function, it will not be used. - Note: The delay values used will be calculated and relative based on how far those views are from the selected position. This means that the animation will look a little smoother if you are using it with large scale numbers of subviews.

    Declaration

    Swift

    public var reversed: Bool = false
  • Undocumented

    Declaration

    Swift

    public struct ContinuousSortFunction: PositionSortFunction
  • A SortFunction that has variable interObjectDelay values. Unlike other SortFunction implementations, for the ContinuousSortFunction you specify a duration and the SortFunction will compute the necessary interObjectDelay values for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: Though interObjectDelay is a value on this sort function, it will not be used. - Note: The delay values used will be calculated and relative based on how far those views are from the selected position. This means that the animation will look a little smoother if you are using it with large scale numbers of subviews.

    Declaration

    Swift

    public func timeOffsets(view: UIView, recursiveDepth: Int) -> [TimedView]

    Parameters

    view

    the view whose subviews should be animated. This view should not be included in the returned array

    recursiveDepth

    an int describing how deep into the view hiearchy the subview search should go, defaults to 0. A value of 0 is the same as calling the subviews on the actual view itself. Therefore a depth of 1 will be getting the subviews of each of the subviews, etc…

    Return Value

    an array of TimedView’s which contain references to the view needed to be animated and the time offset for when the animation of that individual view should start relative to the start of the overall animation