Index

RBAnimator.swift

Classes


RBAnimator

Performs animations with a given configuration.

Properties

static public let defaultDuration CGFloat { get set }

static public let defaultDelay CGFloat { get set }

static public let defaultSpringVelocity CGFloat { get set }

static public let defaultSpringDampening CGFloat { get set }

static public let defaultCurve UIViewAnimationCurve { get set }

static public let defaultOptionsUIViewAnimationOptions UIViewAnimationOptions { get set }

The theme tracker object. Use this to add further theme changes, apply and re-apply themes.
public var theme RBThemeTracker? { get }

The duration of the animation in seconds.
public var duration CGFloat { get set }

The delay before beginning the animation in seconds.
public var delay CGFloat { get set }

The velocity of the spring animation. 0 = no spring
public var springVelocity CGFloat { get set }

The dampening of the spring animation, determining how quickly the initial force subsides.
public var springDampening CGFloat { get set }

The curve of the animation.
public var curve UIViewAnimationCurve { get set }

The animation options.
public var options UIViewAnimationOptions { get set }

Functions

Creates a new instance of an animator configured with the default settings.
@returns The new animator object.
public class func newDefaultAnimator() -> RBAnimator

Creates a new instance of an animator configured with the default spring animation settings.
@returns The new animator object.
public class func newDefaultSpring() -> RBAnimator

Creates a new instance of an animator configured to mimick the keyboard transition animation.
@returns The new animator object.
public class func newDefaultKeyboardAnimator() -> RBAnimator

public func copy(with zone: NSZone?) -> Any

Enqueues a block to be executed after all currently queued animations are complete.
@param actionBlock : The block to execute.
public func perform(afterAnimations actionBlock: @escaping () -> ())

Perform the given changes with an animation.
@param animated : Whether or not the changes should be animated.
@param changes : The changes block that will be called to make the UI changes. viewsToLayout should contain the list of the UIViews to animate.
@param completion : An optional block to be called when the animation has completed.
public func perform(withAnimation animated: Bool, changes: @escaping () -> [UIView]?, completion:RBAnimatorCompletionBlock?)

public func perform(inMainThread action: @escaping () -> ())

public class func generateThemeSchema(withParent parent: RBThemeSchema?) -> RBThemeSchema

public func applyTheme(_ theme: [String: Any])