faberNovel / DynamicOverlay

A SwiftUI library that makes easier to develop overlay based interfaces, such as the one presented in the Apple Maps app.
MIT License
210 stars 20 forks source link

Overlay introduces safe area. #46

Open louwe opened 1 year ago

louwe commented 1 year ago

Hi, I have a map view which ignores the top status bar safe area, but as soon as I put in the "dynamicOverlay" call, it removes the safe area and the map no longer extends to the top status bar. Is there a way to remove this behavior?

EDIT: I figured out that I had to add another call to "ignoresSafeArea()". It's weird because now I have it in two places instead of one and the second "ignoresSafeArea()" call MUST also come after the "dynamicOverlay()" call otherwise it doesn't work. May want to add this note in the README files.

gaetanzanella commented 1 year ago

Hi @louwe! Thank you for the issue!

Would like you to contribute and modify the Readme based on your experience? It would be better 😎

louwe commented 1 year ago

Ah yes, I think I can do that once I can replicate this on a simpler sample project to demonstrate the issue better.