RBNavigationAnimator Class Reference

Inherits from NSObject
Conforms to RBThemeTrackerDelegate
Declared in RBNavigationAnimator.h

Overview

Provides animation functionality for an RBNavigationController object.

  theme

The theming tracker object for the view.

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

Declared In

RBNavigationAnimator.h

  animator

The RBAnimator object to use when animating.

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

Declared In

RBNavigationAnimator.h

  navigationController

The underlying RBNavigationController object that the animator belongs to.

@property (nonatomic, readonly, nullable) RBNavigationController *navigationController

Declared In

RBNavigationAnimator.h

– wasAddedToController:

Notifies the animator that it was added to an RBNavigationController.

- (void)wasAddedToController:(nonnull RBNavigationController *)navigationController

Parameters

navigationController

The RBNavigationController object.

Declared In

RBNavigationAnimator.h

– wasRemovedFromController:

Notifies the animator that it was removed from an RBNavigationController.

- (void)wasRemovedFromController:(nonnull RBNavigationController *)navigationController

Parameters

navigationController

The RBNavigationController object.

Declared In

RBNavigationAnimator.h

– animatePopWithContainer:withBack:withFront:completion:

Animate a pop transition.

- (void)animatePopWithContainer:(nonnull UIView *)container withBack:(nonnull UIView *)back withFront:(nonnull UIView *)front completion:(nullable dispatch_block_t)completion

Parameters

container

The containing view of the view that is being popped.

back

The previous view that will be revealed by the pop operation.

front

The view that is being popped from the container.

completion

The completion block to be called to notify that the operation is complete.

Declared In

RBNavigationAnimator.h

– animatePushWithContainer:withBack:withFront:completion:

Animate a push transition.

- (void)animatePushWithContainer:(nonnull UIView *)container withBack:(nonnull UIView *)back withFront:(nonnull UIView *)front completion:(nullable dispatch_block_t)completion

Parameters

container

The containing view of the view that is being pushed.

back

The previous view that will be hidden by the push operation.

front

The view that is being pushed to the container.

completion

The completion block to be called to notify that the operation is complete.

Declared In

RBNavigationAnimator.h

  doesSupportSwipePop

Whether or not the animator supports swipe-to-pop.

@property (nonatomic, readonly) BOOL doesSupportSwipePop

Declared In

RBNavigationAnimator.h

  swipePopIsFromLeft

Whether or not the swipe to pop a view controller is from the left (YES) or right (NO).

@property (nonatomic, readonly) BOOL swipePopIsFromLeft

Declared In

RBNavigationAnimator.h

– swipePopBeganWithContainer:back:front:vector:

Notifies the animator that a swipe-to-pop operation has begun.

- (void)swipePopBeganWithContainer:(nonnull UIView *)container back:(nonnull UIView *)back front:(nonnull UIView *)front vector:(CGPoint)vector

Parameters

container

The containing view.

back

The back view that is being revealed by the pop.

front

The front view that is being popped.

vector

The current vector of the swipe.

Declared In

RBNavigationAnimator.h

– swipePopUpdatedWithContainer:back:front:vector:

Notifies the animator that a swipe-to-pop operation has updated.

- (void)swipePopUpdatedWithContainer:(nonnull UIView *)container back:(nonnull UIView *)back front:(nonnull UIView *)front vector:(CGPoint)vector

Parameters

container

The containing view.

back

The back view that is being revealed by the pop.

front

The front view that is being popped.

vector

The current vector of the swipe.

Declared In

RBNavigationAnimator.h

– swipePopEndedWithContainer:back:front:vector:completion:

Notifies the animator that a swipe-to-pop operation has ended.

- (void)swipePopEndedWithContainer:(nonnull UIView *)container back:(nonnull UIView *)back front:(nonnull UIView *)front vector:(CGPoint)vector completion:(nullable void ( ^ ) ( BOOL pop ))completion

Parameters

container

The containing view.

back

The back view that is being revealed by the pop.

front

The front view that is being popped.

vector

The current vector of the swipe.

completion

An optional completion block to be called when the operation is complete, indicating whether the view controller should be popped or not.

Declared In

RBNavigationAnimator.h