Index

RBLayoutAnimator.h

Classes


RBLayoutAnimator

A base animator class that provides animations on cells as they appear and disappear.

Properties

The theming tracker object for the view.
public theme RBThemeTracker { get }

The RBAnimator object used to control transition animations.
public animator RBAnimator { get }

Whether or not the cells animate when scrolling in the positive direction (down or right). Default = true.
public animatePositiveDirection Bool { get set }

Whether or not the cells animate when scrolling in the negative direction (up or left). Default = false.
public animateNegativeDirection Bool { get set }

Functions

Animate a cell that is appearing.
@param cell : The cell that is appearing.
@param positiveDirection : Whether or not scrolling is in the positive direction.
@param completion : The completion block to be called when the animation is complete.
- (void)animateAppearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion;

Animate a cell that is disappearing.
@param cell : The cell that is disappearing.
@param positiveDirection : Whether or not scrolling is in the negative direction.
@param completion : The completion block to be called when the animation is complete.
- (void)animateDisappearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion;

Perform a cell appearance animation.
@param cell : The cell that is appearing.
@param positiveDirection : Whether or not scrolling is in the positive direction.
@param completion : The completion block to be called when the animation is complete.
- (void)performAnimateAppearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion;

Perform a cell disappearance animation.
@param cell : The cell that is disappearing.
@param positiveDirection : Whether or not scrolling is in the positive direction.
@param completion : The completion block to be called when the animation is complete.
- (void)performAnimateDisappearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion;