goodwhale / AspirinShot

Painless App Store screenshots with SwiftUI, in Xcode
Other
129 stars 2 forks source link

Sheet opens in preview as sheet above app instead of on the screenshot #3

Closed roygroothulze closed 12 months ago

roygroothulze commented 12 months ago

My app has a sheet with a map below. In the screenshot only the map is visible but the sheet gets opened above the controls.

image
sowenjub commented 12 months ago

Hey, @roygroothulze, thanks for the feedback.

You need to use a ZStack with the map view and the sheet content. Due to the way it works, it's not currently possible to handle all controls or sheets presented onAppear for instance, so you have to recreate it.

I started to create components for some of the situations (eg: ScreenshotInASheetView) and will see if I can make it easier in the future.

roygroothulze commented 12 months ago

Thank you for your help!

sowenjub commented 12 months ago

Of course, anytime 😊