CorneredSortFunction

public struct CorneredSortFunction: CornerSortFunction

A SortFunction designed to animate in a corner like fashion. The views near the starting corner will animate first. In essence it appears to be a wiping function that will continue diagonally based on that corner.

  • A SortFunction designed to animate in a corner like fashion. The views near the starting corner will animate first. In essence it appears to be a wiping function that will continue diagonally based on that corner.

    Declaration

    Swift

    public var corner: Corner
  • A SortFunction designed to animate in a corner like fashion. The views near the starting corner will animate first. In essence it appears to be a wiping function that will continue diagonally based on that corner.

    Declaration

    Swift

    public var interObjectDelay: TimeInterval
  • A SortFunction designed to animate in a corner like fashion. The views near the starting corner will animate first. In essence it appears to be a wiping function that will continue diagonally based on that corner.

    Declaration

    Swift

    public var reversed: Bool = false
  • Undocumented

    Declaration

    Swift

    public struct CorneredSortFunction: CornerSortFunction
  • A SortFunction designed to animate in a corner like fashion. The views near the starting corner will animate first. In essence it appears to be a wiping function that will continue diagonally based on that corner.

    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

  • A SortFunction designed to animate in a corner like fashion. The views near the starting corner will animate first. In essence it appears to be a wiping function that will continue diagonally based on that corner.

    Declaration

    Swift

    public func distancePoint(view: UIView, subviews: [View] = []) -> CGPoint

    Parameters

    view

    the view for which the point coordinates will base their values off of

    subviews

    the subviews that are allocated for the SortFunction. The reason these are passed into the function is so that you can actually grab a reference point of a subview that is closest to the comparison point. This is done so that at least one view will start at the 0s marker.

    Return Value

    a CGPoint object that will allow all views to compare their reference point to this returned value. If translate was used, this returned value should be equal to one of the subviews reference points.