Skip to content

Instantly share code, notes, and snippets.

@mkuliszkiewicz
Created December 12, 2017 13:46
Show Gist options
  • Save mkuliszkiewicz/e497435395e623037616377599ac02ce to your computer and use it in GitHub Desktop.
Save mkuliszkiewicz/e497435395e623037616377599ac02ce to your computer and use it in GitHub Desktop.
UIDynamicAnimator debugging extension
extension UIDynamicAnimator {
func _setDebugAnimationSpeed(_ speed: CGFloat) {
self.perform(NSSelectorFromString("setDebugAnimationSpeed:"), with: speed)
}
func _setDebugEnabled(_ enabled: Bool) {
self.perform(NSSelectorFromString("setDebugEnabled:"), with: enabled)
}
func _setDebugFrameInterval(_ interval: Int) {
self.perform(NSSelectorFromString("setDebugFrameInterval:"), with: interval)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment