HeroTransitions / Hero

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

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

Closed Juhnkerg closed 10 months ago

Juhnkerg commented 10 months 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 10 months ago

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

UIDimmingView
Juhnkerg commented 10 months ago

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