Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use iOS swift hero framework for transition between two viewcontrollers?

I have two viewcontrollers. First is tableviewcontroller and another is detailviewcontroller. Tableviewcontroller shows list of images. When user clicks the image, i want to create a transition as shown below. Does anyone have related project? I think this kind of transition is known as "Shared Element Transition". If I'm wrong help me correcting it. Help me using with "Hero Library" but alternatives are fine as well. enter image description here

like image 839
user3853770 Avatar asked Jan 22 '26 04:01

user3853770


1 Answers

You have to enable Hero on your UINavigationController (in storyboard or do it programmatically)...

You can enable Hero programmatically by using the following:

navigationController.hero.isEnabled = true
like image 76
Jozef Prídavok Avatar answered Jan 23 '26 20:01

Jozef Prídavok



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!