Skip to content

Instantly share code, notes, and snippets.

@tylerlantern
Last active December 24, 2018 15:20
Show Gist options
  • Save tylerlantern/f0d714179ee47aaa29b020ce3e872626 to your computer and use it in GitHub Desktop.
Save tylerlantern/f0d714179ee47aaa29b020ce3e872626 to your computer and use it in GitHub Desktop.
class BHMenuTransitionAnimator: NSObject , UIViewControllerAnimatedTransitioning {
var fromViewController : UIViewController!
init(fromViewController vc : UIViewController ) {
super.init()
self.fromViewController = vc
}
func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
return 0.33
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment