How Hero's 'Magic Move' and heroID work
developHero implements a concept similar to Keynote's 'Magic Move'. It automates transitions by pairing views between a starting and ending view controller. If two views share the same heroID, Hero automatically creates an animation that moves the view from its initial state to its final state.
To use this, assign a unique string to the hero.id property of the views you want to animate across the transition.
// In View Controller 1
redView.hero.id = "ironMan"
// In View Controller 2
self.hero.isEnabled = true
redView.hero.id = "ironMan"