Skip to content

Commit

Permalink
Fix name modal from mismatched delegate protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
bridger committed Jun 1, 2016
1 parent 93421a4 commit e02aed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NumberPad/CanvasViewController.swift
Expand Up @@ -1532,14 +1532,14 @@ class CanvasViewController: UIViewController, UIGestureRecognizerDelegate, Numbe
}


func animationControllerForPresentedController(presented: UIViewController, presentingController presenting: UIViewController, sourceController source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
func animationController(forPresentedController presented: UIViewController, presenting: UIViewController, sourceController source: UIViewController) -> UIViewControllerAnimatedTransitioning? {

let animator = NameCanvasAnimator()
animator.presenting = true
return animator
}

func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
func animationController(forDismissedController dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return NameCanvasAnimator()
}
}
Expand Down

0 comments on commit e02aed9

Please sign in to comment.