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
durationThe total duration of the animations, measured in seconds.
-
A spring animation preset.
Declaration
Swift
case spring(duration: TimeInterval)Parameters
durationThe 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
durationThe total duration of the animations, measured in seconds. If you specify a negative value or 0, the changes are made without animating them.
delayThe amount of time (measured in seconds) to wait before beginning the animations. Specify a value of 0 to begin the animations immediately.
dampingThe damping ratio for the spring animation as it approaches its quiescent state.
velocityThe initial spring velocity. For smooth start to the animation, match this value to the view’s velocity as it was prior to attachment.
optionsA mask of options indicating how you want to perform the animations. For a list of valid constants, see UIViewAnimationOptions.
View on GitHub
RxPullToRefreshAnimationType Enumeration Reference