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
SortFunctionthat has variableinterObjectDelayvalues. Unlike otherSortFunctionimplementations, for theContinuousSortFunctionyou specify adurationand theSortFunctionwill compute the necessaryinterObjectDelayvalues for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: ThoughinterObjectDelayis 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 ofsubviews.Declaration
Swift
public var interObjectDelay: TimeInterval = 0.0 -
Undocumented
Declaration
Swift
public struct ContinuousSortFunction: PositionSortFunction -
A
SortFunctionthat has variableinterObjectDelayvalues. Unlike otherSortFunctionimplementations, for theContinuousSortFunctionyou specify adurationand theSortFunctionwill compute the necessaryinterObjectDelayvalues for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: ThoughinterObjectDelayis 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 ofsubviews.Declaration
Swift
public var position: Position -
A
SortFunctionthat has variableinterObjectDelayvalues. Unlike otherSortFunctionimplementations, for theContinuousSortFunctionyou specify adurationand theSortFunctionwill compute the necessaryinterObjectDelayvalues for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: ThoughinterObjectDelayis 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 ofsubviews.Declaration
Swift
public var reversed: Bool = false -
Undocumented
Declaration
Swift
public struct ContinuousSortFunction: PositionSortFunction -
A
SortFunctionthat has variableinterObjectDelayvalues. Unlike otherSortFunctionimplementations, for theContinuousSortFunctionyou specify adurationand theSortFunctionwill compute the necessaryinterObjectDelayvalues for each of the subviews. This means that the offset times will not be multiples of the delay like usual. - Note: ThoughinterObjectDelayis 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 ofsubviews.Declaration
Swift
public func timeOffsets(view: UIView, recursiveDepth: Int) -> [TimedView]Parameters
viewthe view whose subviews should be animated. This view should not be included in the returned array
recursiveDepthan 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
subviewson 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
View on GitHub
ContinuousSortFunction Struct Reference