hfossli hfossli - 1 year ago 80
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.

Answer Source

Fortunately it's easy:

float UIAnimationDragCoefficient(void);

static inline BOOL slowAnimationsEnabled()
    return UIAnimationDragCoefficient() != 1;
    return NO;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download