ThornTechPublic / InteractiveModal

MIT License
148 stars 36 forks source link

Doesn't work with Swift 3? #6

Open Tibb opened 7 years ago

Tibb commented 7 years ago

Thx for this great tuto, but unfortunately, it doesn't work anymore with Swift 3: the view is directly dismissed when you start to drag. I reproduce it on my project and I also tried on with this project: same result. Do you have any idea on how to fix that? Thanks a lot

nevinjethmalani commented 7 years ago

Yes, we had the same issue. Will you be releasing a swift 3 version?

chenr2 commented 7 years ago

Not sure when I'll be able to get to updating this tutorial. But pull requests are always welcome.

komayip commented 7 years ago

change func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? { return DismissAnimator() }

to

func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? { return DismissAnimator() }

works