RBAnimator Class Reference

Inherits from NSObject
Conforms to NSCopying
RBThemeTrackerDelegate
Declared in RBAnimator.h

Overview

Performs animations with a given configuration.

  theme

The theme tracker object. Use this to add further theme changes, apply and re-apply themes.

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

Declared In

RBAnimator.h

  duration

The duration of the animation in seconds.

@property CGFloat duration

Declared In

RBAnimator.h

  delay

The delay before beginning the animation in seconds.

@property CGFloat delay

Declared In

RBAnimator.h

  springVelocity

The velocity of the spring animation. 0 = no spring

@property CGFloat springVelocity

Declared In

RBAnimator.h

  springDampening

The dampening of the spring animation, determining how quickly the initial force subsides.

@property CGFloat springDampening

Declared In

RBAnimator.h

  curve

The curve of the animation.

@property UIViewAnimationCurve curve

Declared In

RBAnimator.h

  options

The animation options.

@property UIViewAnimationOptions options

Declared In

RBAnimator.h

+ defaultAnimator

Creates an animator configured with the default settings.

+ (nonnull instancetype)defaultAnimator

Return Value

The new animator object.

Declared In

RBAnimator.h

+ defaultSpringAnimator

Creates an animator configured with the default spring animation settings.

+ (nonnull instancetype)defaultSpringAnimator

Return Value

The new animator object.

Declared In

RBAnimator.h

+ defaultKeyboardAnimator

Creates an animator configured to mimick the keyboard transition animation.

+ (nonnull instancetype)defaultKeyboardAnimator

Return Value

The new animator object.

Declared In

RBAnimator.h

– performWithAnimation:changes:completion:

Perform the given changes with an animation.

- (void)performWithAnimation:(BOOL)animated changes:(nonnull void ( ^ ) ( NSArray<__kindofUIView*> *__nullable *__nullable viewsToLayout ))changes completion:(nullable dispatch_block_t)completion

Parameters

animated

Whether or not the changes should be animated.

changes

The changes block that will be called to make the UI changes. viewsToLayout should contain the list of the UIViews to animate.

completion

An optional block to be called when the animation has completed.

Declared In

RBAnimator.h

– performAfterAnimations:

Enqueues a block to be executed after all currently queued animations are complete.

- (void)performAfterAnimations:(nonnull dispatch_block_t)actionBlock

Parameters

actionBlock

The block to execute.

Declared In

RBAnimator.h