Default source code, why is there a black area at the top?

#767 · closed · 2 comments

View on GitHub ↗

Juhnkerg

<!-- ℹ We use Github issues for bug reports, feature requests, general support, and questions about the library. Please fill out this template when filing an issue. --> ## What did you do? Default source code, why is there a black area at the top? ## What did you expect to happen? I want to remove the black area at the top. ## What happened instead? Default source code, why is there a black area at the top? ## General Information * Hero Version: defult https://github.com/HeroTransitions/Hero.git * iOS Version(s): iOS 17.0 * Swift Version: swift 5 * Devices/Simulators: iPhone 15 pro * Reproducible in Examples? (Yes/No): Yes ## Demo Project https://github.com/HeroTransitions/Hero/assets/20426114/612f3689-de52-4fda-9755-1b821cc4fc0d

Comments

Juhnkerg

It seems to be caused by UIDimmingView, but I don't know how to fix it. lol <img width="815" alt="UIDimmingView" src="https://github.com/HeroTransitions/Hero/assets/20426114/f4762fff-97ea-4dc1-82a5-b04a4e4f4941">

Juhnkerg

Before present(vc, animated: true, completion: nil), need to set modalPresentationStyle = .currentContext or others except .formSheet