Index

RBNavigationAnimator.h

Classes


RBNavigationAnimator

Provides animation functionality for an RBNavigationController object.

Properties

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

The RBAnimator object to use when animating.
public animator RBAnimator { get }

The underlying RBNavigationController object that the animator belongs to.
public navigationController RBNavigationController? { get }

Whether or not the animator supports swipe-to-pop.
public doesSupportSwipePop Bool { get }

Whether or not the swipe to pop a view controller is from the left (YES) or right (NO).
public swipePopIsFromLeft Bool { get }

Functions

Notifies the animator that it was added to an RBNavigationController.
@param navigationController : The RBNavigationController object.
- (void)wasAddedToController:(nonnull RBNavigationController *)navigationController;

Notifies the animator that it was removed from an RBNavigationController.
@param navigationController : The RBNavigationController object.
- (void)wasRemovedFromController:(nonnull RBNavigationController *)navigationController;

Animate a pop transition.
@param container : The containing view of the view that is being popped.
@param back : The previous view that will be revealed by the pop operation.
@param front : The view that is being popped from the container.
@param completion : The completion block to be called to notify that the operation is complete.
- (void)animatePopWithContainer:(nonnull UIView *)container

Animate a push transition.
@param container : The containing view of the view that is being pushed.
@param back : The previous view that will be hidden by the push operation.
@param front : The view that is being pushed to the container.
@param completion : The completion block to be called to notify that the operation is complete.
- (void)animatePushWithContainer:(nonnull UIView *)container

Notifies the animator that a swipe-to-pop operation has begun.
@param container : The containing view.
@param back : The back view that is being revealed by the pop.
@param front : The front view that is being popped.
@param vector : The current vector of the swipe.
- (void)swipePopBeganWithContainer:(nonnull UIView *)container

Notifies the animator that a swipe-to-pop operation has updated.
@param container : The containing view.
@param back : The back view that is being revealed by the pop.
@param front : The front view that is being popped.
@param vector : The current vector of the swipe.
- (void)swipePopUpdatedWithContainer:(nonnull UIView *)container

Notifies the animator that a swipe-to-pop operation has ended.
@param container : The containing view.
@param back : The back view that is being revealed by the pop.
@param front : The front view that is being popped.
@param vector : The current vector of the swipe.
@param completion : An optional completion block to be called when the operation is complete, indicating whether the view controller should be popped or not.
- (void)swipePopEndedWithContainer:(nonnull UIView *)container