Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to detect if parallax effect is disabled in ios 7? [duplicate]

I am making a wallpaper app and would like to check if a user has parallax enabled on his iOS 7 device. Is there a way in objective-C that I can check that? Has Apple granted us developers access to check this boolean?

i.e. if parallax is enabled do step1 otherwise do step2

like image 559
Sam B Avatar asked Nov 24 '22 13:11

Sam B


1 Answers

As of iOS 8:

// Returns whether the system preference for reduce motion is enabled
UIKIT_EXTERN BOOL UIAccessibilityIsReduceMotionEnabled() NS_AVAILABLE_IOS(8_0);
UIKIT_EXTERN NSString *const UIAccessibilityReduceMotionStatusDidChangeNotification NS_AVAILABLE_IOS(8_0);

For anything earlier than iOS 8, I don't think there's a legit way to tell.

like image 58
John Scalo Avatar answered Nov 26 '22 02:11

John Scalo