Hero: Hero (1.3.0): .overCurrentContext doesn't show underlying view
Hey YiLun, Thumbs up for this amazing library!
My issue is that I have a black background when transition finished. This is my code: (maybe I am doing something wrong?)
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.
Thanks in advance Luda
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 16 (1 by maintainers)
Hello! In my case .overFullScreen doesn’t work with Hero 1.5.0 as well. Does anyone know a solution?
The background color of my target VC ist set to .clear. When I change the AnimationType to .fade everything works fine. Unfortunately I need the cover/uncover animation.
Hope someone can help me with this problem.