Created
December 12, 2017 13:46
-
-
Save mkuliszkiewicz/e497435395e623037616377599ac02ce to your computer and use it in GitHub Desktop.
UIDynamicAnimator debugging extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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