@SD10 SD10 released this Oct 14, 2018

Assets 2

This release adds support for Swift 4.2 and also maintains backward compatibility for previous Swift versions. Thank you to @rennarda for contributing to this release 🥇

Added

@SD10 SD10 released this Sep 11, 2018 · 3 commits to master since this release

Assets 2

This release fixes a retain cycle caused by strong references to delegates.

Thanks to @mkieselmann for contributing to this release 👊🥇💯

Fixed

  • Fixed the retain cycle caused by strong references to previousNavigationDelegate and previousTabBarDelegate.
    #516 by @mkieselmann

@SD10 SD10 released this Jul 30, 2018 · 5 commits to master since this release

Assets 2

This version fixes a few bugs related to animations and improves handling of UINavigationController delegate events and the ability to provide completion blocks for basic transition methods.

Thanks to @lkzhao, @2blane, @kartikthapar, and @bradphilips for contributing to this release 💪💯🥇

Added

  • Adds an optional completion block parameter to the dismissViewController and replaceViewController methods.
    #456 by @kartikthapar

Changed

  • Allows previous UINavigationController delegate to handle delegate events.
    #430 by @bradphilips

Fixed

  • Fixed shadows being cutoff by snapshots.
    #440 by @2blane
  • Fixed animation flickering on CALayer animation.
    f4dab9 by @lkzhao

@lkzhao lkzhao released this Apr 12, 2018 · 12 commits to master since this release

Assets 2
  • 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 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:

@lkzhao lkzhao released this Feb 7, 2018 · 28 commits to master since this release

Assets 2
  • Added Constrained extension to make API more elegant. (#367) Big thanks to @dDomovoj for making this happen!
view.heroID -> view.hero.id
view.heroModifiers -> view.hero.modifiers
// etc..
  • Make tvOS Shared to be detected by carthage (#370) Credit to: @fruitcoder
  • Prevents animation from restarting when new UITabBarController tab is pressed rapidly multiple times (#373) Credit to: @armandsLa
  • Fix debug plugin to respect iPhone X safe insets (#375) Credit to: @nick-potts
  • Fix a force unwraps crashes. (#335) @imougy
  • Fix tabbar issues with hideButtonBarOnPush
  • Internal cleanup with CG extensions (#369) @adamnemecek
  • Fix internal influencing other animations libraries.

@lkzhao lkzhao released this Nov 22, 2017 · 40 commits to master since this release

Assets 2
  • fix an issue where interactive transition happens abruptly (#299) @capt-hook
  • fix a force unwrap crash (#333) @imougy
  • fix a division by zero crash when size is zero (#313) @caihua
  • Use context's final frame for destination (#327) @zacwest
  • Changes observeForProgressUpdate protection level to public, instead of internal (#329) @mad102190
  • ability to override cornerRadius for matched view

@lkzhao lkzhao released this Oct 25, 2017 · 51 commits to master since this release

Assets 2

This release fix some compatibility issue with swift 4, Xcode 9, and iOS 11.

Also looking for a maintainer!

Hero helped me learned a lot about iOS over the last year. Fighting the iOS animation system and dealing with UI bugs has been quite a journey. But I am sorry to say that I do not have to time to maintain this project anymore. The scope of this project has become unmanageable for me to handle. I am looking for a project maintainer to this project and I'm open to transfer this to a public organization instead of under my personal account.

I will still be using Hero in productions, and contribute to critical bug fixes and new iOS release.

Pre-release

@lkzhao lkzhao released this Jul 21, 2017 · 76 commits to master since this release

Assets 2
  • fix a crash when fullScreenSnapshot fails to capture. (happens when the app is backgrounded)
Pre-release

@lkzhao lkzhao released this Jul 18, 2017 · 78 commits to master since this release

Assets 2
  • fix an issue where views that are contained in a transformed view are not animated properly #237
  • less force-unwraps.
Pre-release

@lkzhao lkzhao released this Jul 14, 2017 · 81 commits to master since this release

Assets 2

This is the second alpha version for 1.0.0 release. Mostly bug fixes.

  • fix an issue where the duration is incorrect when resuming an animation with delay
  • fix a performance issue with interactive transition
  • remove most of the force unwrapped optional
  • fix a crash where finish/cancel is called before the animation has started.
  • make internal CAMediaTimingFunctions public
  • default container color is now black. to customize, construct your own HeroTransition object.

Example project

  • animate tabbar so that it doesnt cover the content
  • add a playground in the example project for quick tests