I have a parent view controller with a built-in child view controller. When a user deletes a child, I would like to present its view in full screen with an animation of the “expanding frame”. A similar interface paradigm is used, for example, to enlarge images in Facebook and 9GAG applications.
Should I create a new controller for the view in full screen and animate it as if it were only on top of the child view controller? Or should I animate the child view in order to move on to view restrictions?
I heard about custom subclasses of UIStoryboardSegue and UIViewControllerTransitioning . Are these approaches applicable in my case?
What is the best way to do this?
Thanks in advance. Pete.
R. S. After solving this problem, I would like to expand my transition using gestures to shrink to zoom. If the user accesses the child view with two fingers, the frame animation responds to taps. When the user moves his finger away, the animation must either return, or return the child view to the original frame, or continue, as if the user clicked on this view.
source share