duration The amount of time the transition takes to go from one state to another. Declarationvar duration: TimeInterval