2

In iOS swift I use HeroTransition library to make animations. Is there a way to change animation speed?

let vc = DODViewController.init(with: project , projectType: .doodle, needToMapFolderIndex: nil)
            
let heroId = "newcontentscanvas1"
cell.hero.id = heroId
vc.hero.isEnabled = true
vc.view.hero.id = heroId
self.present(vc, animated: true, completion: nil)
isuru
  • 3,385
  • 4
  • 27
  • 62

1 Answers1

2

You can add a modifier to the hero component. In your case, it can be done as follows,

cell.hero.modifiers = [.duration(0.8)]

for more info check the following issues on the repo #464

Visal Rajapakse
  • 1,718
  • 1
  • 9
  • 15