RxPullToRefreshAnimationType

public enum RxPullToRefreshAnimationType

An enumeration for animation presets indicating duration and velocity when loading and backing.

  • A linear animation preset.

    Declaration

    Swift

    case linear(duration: TimeInterval)

    Parameters

    duration

    The total duration of the animations, measured in seconds.

  • A spring animation preset.

    Declaration

    Swift

    case spring(duration: TimeInterval)

    Parameters

    duration

    The total duration of the animations, measured in seconds.

  • A customizable animation preset. See the Apple doc for more information.

    Declaration

    Swift

    case custom(duration: TimeInterval, delay: TimeInterval, springDamping: CGFloat, initialSpringVelocity: CGFloat, options: UIView.AnimationOptions)

    Parameters

    duration

    The total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.

    delay

    The amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.

    damping

    The damping ratio for the spring animation as it approaches its quiescent state.

    velocity

    The initial spring velocity. For smooth start to the animation, match this value to the view’s velocity as it was prior to attachment.

    options

    A mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.