RBNavigationAnimator Class Reference
Inherits from | NSObject |
---|---|
Conforms to | RBThemeTrackerDelegate |
Declared in | RBNavigationAnimator.h |
theme
The theming tracker object for the view.
@property (nonatomic, readonly, nonnull) RBThemeTracker *theme
Discussion
The theming tracker object for the view.
Declared In
RBNavigationAnimator.h
animator
The RBAnimator
object to use when animating.
@property (nonatomic, readonly, nonnull) RBAnimator *animator
Discussion
The RBAnimator
object to use when animating.
Declared In
RBNavigationAnimator.h
navigationController
The underlying RBNavigationController
object that the animator belongs to.
@property (nonatomic, readonly, nullable) RBNavigationController *navigationController
Discussion
The underlying RBNavigationController
object that the animator belongs to.
Declared In
RBNavigationAnimator.h
– wasAddedToController:
Notifies the animator that it was added to an RBNavigationController
.
- (void)wasAddedToController:(nonnull RBNavigationController *)navigationController
Parameters
navigationController |
The |
---|
Discussion
Notifies the animator that it was added to an RBNavigationController
.
Declared In
RBNavigationAnimator.h
– wasRemovedFromController:
Notifies the animator that it was removed from an RBNavigationController
.
- (void)wasRemovedFromController:(nonnull RBNavigationController *)navigationController
Parameters
navigationController |
The |
---|
Discussion
Notifies the animator that it was removed from an RBNavigationController
.
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. |
Discussion
Animate a pop transition.
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. |
Discussion
Animate a push transition.
Declared In
RBNavigationAnimator.h
swipePopIsFromLeft
Whether or not the swipe to pop a view controller is from the left (true) or right (false).
@property (nonatomic, readonly) BOOL swipePopIsFromLeft
Discussion
Whether or not the swipe to pop a view controller is from the left (true) or right (false).
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. |
Discussion
Notifies the animator that a swipe-to-pop operation has begun.
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. |
Discussion
Notifies the animator that a swipe-to-pop operation has updated.
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. |
Discussion
Notifies the animator that a swipe-to-pop operation has ended.
Declared In
RBNavigationAnimator.h