Hero doesn't have support for these modal presentation styles yet. Would be a bit tricky to implement since Hero needs to keep track of the presented view controllers.
Related to #34 #26
Could you point out how the community could help you with this issue? I love your framework but for context transitions it's sometimes necessary to show "where you come from", because it's better to understand the context. Isn't it sufficient to store a snapshot of the presenting view controller instead of a pointer to it?
@fruitcoder Yes, we can start working on this now. For the past few week I have been trying to clean up the existing API and drop the zPosition modifier that was needed to make Hero transitions.
About your suggestion with keeping a snapshot of the presentingVC. The problem is that it doesn't work when the screen rotates on the presented VC. Ideally the presentingVC should also rotate and re-layout its subviews.
There are 2 problems to be solved:
hero_replaceViewController & hero_unwindToViewController depend on this.I am also not very familiar with UIPresentationController. I have to spend some time on that and see if that is something we can use to maintain state information.
.overFullScreen support is implemented in 0.3.0
Thank a lot for this amazing library!
This issue is still happening to me - I can still see black background when transition finished.
let vc = MyViewController(...)
vc.hero.isEnabled = true
vc.hero.modalAnimationType = .selectBy(presenting: .pull(direction: .left), dismissing: .pull(direction: .right))
vc.modalPresentationStyle = .overCurrentContext
vc.view.backgroundColor = .clear
present(vc2, animated: true, completion: nil)
When I set animated property to false present(vc2, animated: false, completion: nil) the background is transperent, but then I do not see the transition
Any news on this?
Most helpful comment
.overFullScreen support is implemented in 0.3.0