Disabling card zoom effect on certain transitions

I have attached a screenshot showing the type of behavior in Apple's own Weather app that I am looking to disable in my own app. There is a zoom / card effect where the presenting view shrinks / zooms in the background, exposing a different background color that can look out of place.

Notice that when dragging the map view to dismiss it, the views behind it are zoomed in exposing a different background. The presenting view that has this "card" effect has hard edges that do not match the screens corner radius as well, so it just looks out of place.

Using this as an example, what would be the way to keep this matched zoom transition but keeping the Weather's background still going edge to edge?

In my app I am trying to keep my mesh gradient edge to edge and not zoomed in with black or white borders in a similar situation to what we are seeing in the Weather app on 26.4

Let me know if I need to explain it more. Thank you!

Disabling card zoom effect on certain transitions
 
 
Q