Bug Apple sheet and presentationsDetens

There is an assumption that this is a bug and it is reproduced only on a real device, it cannot be reproduced on a simulator. I make a simple sheet with a state, hang PresentationDetens on the sheet elements and just quickly try to open a modal window and immediately close it (we close it with a swipe), and immediately open another or the same modal window and we get that our modal window opens on the entire screen, and not what we expected let's say presentationsDetens 500 how to fix this?

Provide some code. Without it, we can't really tell whether there's a bug or you've done something wrong.

yea, example: `struct ContentView: View { @State var openSheet = false

var body: some View {
    List {
        Button {
            openSheet = true
        } label: {
            Text("hello!")
        }
        Button {
            openSheet = true
        } label: {
            Text("hello!")
        }
        Button {
            openSheet = true
        } label: {
            Text("hello!")
        }
    }
    .sheet(isPresented: $openSheet) {
        Text("Hello sheet!")
            .presentationDetents([.height(550)])
    }
}

}

@lousyDire I'm unable to reproduce the issue. Could you please file a bug report, include the code snippet that demonstrates the issue, specify the OS and build version you tested on.

Post the FB number here once you file the bug report. Bug Reporting: How and Why? has tips on creating your bug report.

Bug Apple sheet and presentationsDetens
 
 
Q