1.2.0
-
add
HeroTransitionDelegate
for observing transition state and progress -
add ability to change target state during interactive transition.
#322Just call the following method before calling
finish(animate:)
and provide the target state similar toapply(modifiers:, to:)
Hero.shared.changeTarget(modifiers:, to:)
for example:
someView.hero.modifiers = [.translate(x: 100)] // when you want to finish interactive transition Hero.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:
- fix 2x mode on ipad
- Add type hinting to CascadeDirection comperator (#403) @Bennx
- Update for Xcode 9.3 and Swift 4.1 (#439) @joaomvfsantos
- Add UIView+Hero.swift and UIViewController+Hero.swift to public heade… (#425) @DanielAsher
- copy image view resizing filter to snapshot (#428) @sroik
- TabBarController.selectedViewController issue (#407) @dDomovoj
- Fix typo on 'Advanture' (#398) @fabiothiroki
- Update README.zh-cn.md (#429) @Fidetro