Skip to content

kodegut/MenuTest

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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:

MenuTestNotWorking

Swiping down to dismiss does work:

MenuTestWorking

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

About

Describing a bug with Sheet and Menu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages