Describing a bug with Sheet and Menu

MenuTest

Describing a bug with Sheet and Menu

This repository is related to a question in Apples developers forum, with id: 692338

Dismiss via Button doesn’t work:

Swiping down to dismiss does work:

Things I tried to solve the problem:

  • putting the @Environment(.presentationMode) variable additionally in ContentView
  • using the new dismiss action available in iOS15
  • using the method of setting the original „showingSheet“ Bool with a Binding to dismiss the sheet
  • putting the menu in various places
  • putting a ternary operator into the menu checking the „showingSheet“ Bool, to force an update
  • switching to a fullScreenCover instead
  • various other things that didn’t help

GitHub

View Github