Hero v1.2.0 Release Notes

Release Date: 2018-04-12 // about 3 years ago

    ➕ add HeroTransitionDelegate for observing transition state and progress

    ➕ add ability to change target state during interactive transition.
    #322

    Just call the following method before calling finish(animate:) and provide the target state similar to apply(modifiers:, to:)

    Hero.shared.changeTarget(modifiers:, to:)
    

    for example:

    someView.hero.modifiers = [.translate(x: 100)]// when you want to finish interactive transitionHero.shared.changeTarget(modifiers:[.translate(x: -100)], to: someView) Hero.shared.finish()// this will animate someView to the state of `.translate(x: -100)` instead of `.translate(x: 100)`
    

    🛠 a number of bug fixes and improvements: