hfossli hfossli - 5 months ago 34
iOS Question

Detect if slow animations is on / off in iOS Simulator in code

I want to programatically detect if slow animations is on or off in simulator.

Something like this would be handy.


This is for development purposes only.


Fortunately it's easy:

float UIAnimationDragCoefficient(void);

static inline BOOL slowAnimationsEnabled()
    return UIAnimationDragCoefficient() != 1;
    return NO;