Index

RBSequenceController.swift

Protocols

Classes


RBSequenceController

Manages a sequence of transitions.

Properties

The delegate to receive transition change events.
public weak var delegate RBSequenceControllerDelegate? { get set }

The number of steps in the sequence.
public var stepCount Int { get }

The index of the current step in the sequence.
public var stepIndex Int { get }

Whether or not the controller should automatically move to the next step.
public var automaticStepEnabled Bool { get set }

The delay that the controller should observe between a step being completed and transitioning to the next step.
public var automaticStepDelay TimeInterval { get set }

Whether or not the controller should automatically repeat the sequence when it finishes.
public var shouldRepeatAtEnd Bool { get set }

Functions

Add a step to the sequence.
@param sequenceStep : The RBSequenceStep object to add.
public func add(_ sequenceStep: RBSequenceStep)

Starts the sequence.
@returns Whether or not the operation completed successfully.
public func start() -> Bool

Transitions to the next step in the sequence.
@returns Whether or not the operation completed successfully.
public func nextStep() -> Bool

Resets to the first step in the sequence.
public func resetAndRewind()