HeroTransitions / Hero

Elegant transition library for iOS & tvOS
https://HeroTransitions.github.io/Hero/
MIT License
22k stars 1.72k forks source link

OverFullScreen problem #756

Open Samueleuf opened 1 year ago

Samueleuf commented 1 year ago

Hi, Presenting a navigation controller with: Background clear ModalPresentationStyle = overFullScreen

The vc under the new vc is black when I move the upper vc, disabling hero I see it correctly if I move the upper

BlackCatHehe commented 1 year ago

Any sulotions? I have the same question

Samueleuf commented 1 year ago

navigation.hero.modalAnimationType = .selectBy(presenting: .fade, dismissing: .none) navigation.hero.navigationAnimationTypeselectBy(presenting: .push(direction: .left), dismissing: .pull (direction: right)) navigation.modalPresentationStyle = .overFullScreen navigation.modalPresentationCapturesStatusBarAppearance = true navigation.view.isOpaque = false navigation.view.backgroundColor = .clear

cruisediary commented 1 year ago

How about trying to use useNoSnapShot? The useNoSnapShot modifier does not create a black snapshot.