DefaultSortFunction
public struct DefaultSortFunction: SortFunction
The basic SortFunction
. Use this sort function if you want to animate in all views at the same time and give an interObjectDelay
of 0.0
. Note that this SortFunction
will animate the views based on the order they were added to the animation view. This means that the way the views are sorted in the subviews
array is the way that they will be sorted by this SortFunction
.
-
Undocumented
Declaration
Swift
public struct DefaultSortFunction: SortFunction
-
Undocumented
Declaration
Swift
public struct DefaultSortFunction: SortFunction
-
Undocumented
Declaration
Swift
public struct DefaultSortFunction: SortFunction
-
The basic
SortFunction
. Use this sort function if you want to animate in all views at the same time and give aninterObjectDelay
of0.0
. Note that thisSortFunction
will animate the views based on the order they were added to the animation view. This means that the way the views are sorted in thesubviews
array is the way that they will be sorted by thisSortFunction
.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