RBLayoutAnimator Class Reference

Inherits from NSObject
Conforms to RBThemeTrackerDelegate
Declared in RBLayoutAnimator.h

Overview

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

  theme

The theming tracker object for the view.

@property (nonatomic, readonly, nonnull) RBThemeTracker *theme

Declared In

RBLayoutAnimator.h

  animator

The RBAnimator object used to control transition animations.

@property (nonatomic, readonly, nonnull) RBAnimator *animator

Declared In

RBLayoutAnimator.h

  animatePositiveDirection

Whether or not the cells animate when scrolling in the positive direction (down or right).

@property (nonatomic) BOOL animatePositiveDirection

Declared In

RBLayoutAnimator.h

  animateNegativeDirection

Whether or not the cells animate when scrolling in the negative direction (up or left).

@property (nonatomic) BOOL animateNegativeDirection

Declared In

RBLayoutAnimator.h

– animateAppearedCell:positiveDirection:completion:

Animate a cell that is appearing.

- (void)animateAppearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion

Parameters

cell

The cell that is appearing.

positiveDirection

Whether or not scrolling is in the positive direction.

completion

The completion block to be called when the animation is complete.

Declared In

RBLayoutAnimator.h

– animateDisappearedCell:positiveDirection:completion:

Animate a cell that is disappearing.

- (void)animateDisappearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion

Parameters

cell

The cell that is disappearing.

positiveDirection

Whether or not scrolling is in the negative direction.

completion

The completion block to be called when the animation is complete.

Declared In

RBLayoutAnimator.h

– performAnimateAppearedCell:positiveDirection:completion:

Perform a cell appearance animation.

- (void)performAnimateAppearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion

Parameters

cell

The cell that is appearing.

positiveDirection

Whether or not scrolling is in the positive direction.

completion

The completion block to be called when the animation is complete.

Declared In

RBLayoutAnimator.h

– performAnimateDisappearedCell:positiveDirection:completion:

Perform a cell disappearance animation.

- (void)performAnimateDisappearedCell:(nonnull UIView *)cell positiveDirection:(BOOL)positiveDirection completion:(nullable dispatch_block_t)completion

Parameters

cell

The cell that is disappearing.

positiveDirection

Whether or not scrolling is in the positive direction.

completion

The completion block to be called when the animation is complete.

Declared In

RBLayoutAnimator.h