-1

I have a cameraviewController and I would like that when you press the bar button it will open the view with animation like WhatsApp with the circular transition animation.

Hope someone have some tutorial or code for that.

Nimantha
  • 6,405
  • 6
  • 28
  • 69

1 Answers1

2

Generally there is a way to write custom transition defined by Apple using custom UIViewControllerTransitioningDelegate. check it here

If you are looking for drop in solution you may check BubbleTransition

Also there is a good library for further custom transitions called Hero.

For general usage of custom transition and tutorial, you can refer to Ray Wenderlich web, where you can find useful tips. Swift custom transitions - Ray Wenderlich

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Radim Halfar
  • 536
  • 2
  • 6
  • 15
  • good answer :D, writing your own is great experience, but links to multiple libraries ++ – Sean Lintern Nov 09 '17 at 10:26
  • In fact if you get used to it, it is pretty fancy, but why to reinvent the wheel ¯\_(ツ)_/¯ – Radim Halfar Nov 09 '17 at 10:28
  • Hey first of all thanks about your comment but Do you have any code that can provide me exactly how to create the animation – Anonymous Dev Nov 09 '17 at 13:00
  • Check out the BubbleTransition link, there is setup section in Readme file. How do you mean code to create the animation? The animation on your own or what kind of ? :) – Radim Halfar Nov 09 '17 at 15:08