dimanche 12 février 2017

custom interactive transition animation

Vote count: 0

I want to implement an interactive transition between two view controllers. I would like it to be a modal or present transition.

  • I want the app to start out on the first view controller and allow the user to swipe down to bring in the second view controller
  • The second view controller should come in and cover the current (first view controller) rather than move it out of the way

I understand that I would need to use the following.

transitioningDelegate

animationController(forPresented:presenting:Source:)

interactionControllerForPresentation(Using:)

UIPercentDrivenInteractiveTransition

I am having trouble figuring out how to implement all this. I can't seem to find anything useful or any working examples in swift 3. For now I created a simple single view application with two view controllers VC1 (blue background) and VC2 (yellow background) to easily test out any possible solutions.

asked 22 secs ago

Let's block ads! (Why?)



custom interactive transition animation

Aucun commentaire:

Enregistrer un commentaire