Skip to content

Instantly share code, notes, and snippets.

@sergeytimoshin
Last active December 18, 2015 05:19
Show Gist options
  • Save sergeytimoshin/5731779 to your computer and use it in GitHub Desktop.
Save sergeytimoshin/5731779 to your computer and use it in GitHub Desktop.
UIAnimationDragCoefficient
void *UIKit = dlopen([[[NSBundle bundleForClass:[UIApplication class]] executablePath] fileSystemRepresentation], RTLD_LAZY);
CGFloat (*UIAnimationDragCoefficient)(void) = (CGFloat (*) (void)) dlsym(UIKit, "UIAnimationDragCoefficient");
DLog(@"coefficient is %f", UIAnimationDragCoefficient ? UIAnimationDragCoefficient() : 1.f);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment