HeroTransitions / Hero

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

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

Closed Juhnkerg closed 1 year ago

Juhnkerg commented 1 year ago

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

Demo Project

https://github.com/HeroTransitions/Hero/assets/20426114/612f3689-de52-4fda-9755-1b821cc4fc0d

Juhnkerg commented 1 year ago

It seems to be caused by UIDimmingView, but I don't know how to fix it. lol

UIDimmingView
Juhnkerg commented 1 year ago

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