I'm trying to get an expanding transition animation : I have a UICollectionView and when the user select a cell I want this cell to expand to the whole screen. The transition is a Push segue transition
I tried getting the cell location and then animate but I don't think I'm doing it the right way.
I have some class :
- CollectionViewController : subclass of
UICollectionViewController - FinalViewController : subclass of
UIViewController - NavigationControllerDelegate :
UINavigationControllerDelegateProtocol implemented - Animator :
UIViewControllerAnimatedTransitioningprotocol implemented
First question : does anyone ever get this effect, have a sample code or know a proper way to achieve this ? This would be really great
Otherwise : How should I get the concerned cell in the Animator class ? I need the frame of the cell, and the subviews. Actually I have a selectedCell property that I set in the prepareForSegue function if the CollectionViewController, but I'm not sure it's the right way
Thanks for your help