Elegant transition library for iOS & tvOS
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.
fullScreenSnapshot
fails to capture. (happens when the app is backgrounded)This is the second alpha version for 1.0.0 release. Mostly bug fixes.
HeroTransition
object.Example project
Sorry guys for the inactivity with this project. I have been having some other commitments. From now on, I will start maintaining and updating it more often.
So to prepare for stable release 1.0, there will be a few alpha versions. I will start to clean up issues and start monitor new ones. Feel free to submit anything you have encountered while using the new versions.
.useNoSnapshot
will now try to insert the view back to the view hierarchy once the transition completes. So you don't need to manually insert it back.
.useNoSnapshot
will now animate subview layout changes. Very convenient when you want your custom layout be animated during the transition.
Added .whenXXX
modifiers to make hero more declaritive.
HeroViewControllerDelegate
, you can now use .whenPresenting
, .whenDismissing
, .whenApearing
, .whenDisapearing
, .whenMatched
, or your own conditions with .when
Added isHeroEnabledForSubviews
property on UIView. Setting this to true will let Hero skip over the subview tree. This saves a lot of computation time when the subview tree is complex.
Better support iOS custom keyboard
Better support UIVisualEffectView
You can now create your own instance of HeroTransition
instead of using isHeroEnabled
& Hero.shared
.
HeroTransition
and assign it to the transitionDelegate
property of your view controller.Added viewOrderingStrategy
property to HeroTransition
which allow you to customize which view controller should be inserted first during the transition.
Added isUserInteractionEnabled
property to HeroTransition
which allow you to enable user interaction during the transition.
.useNoSnapshot
modifier to the views that you want to enabled user interaction. Also keep in mind that Hero can be in any state when you are handling user interaction. If you want to trigger a new transition, besure to call cancel(animated: false)
or finish(animated: false)
before starting the new transition.The following methods on Hero
is removed in favor of creating your custom HeroTransition
object
func disableDefaultAnimationForNextTransition()
func setDefaultAnimationForNextTransition(_ animation: HeroDefaultAnimationType)
func setContainerColorForNextTransition(_ color: UIColor?)
Fix #148
added three new string properties to set defaultAnimation
new string parser that will give some error feedback
fix speed different bug for interaction transition #132
other small bug fixes.