SwiftUI sheet size control on iPad

I want to show a custom confirmation dialog on my iPad. It pops up looking utterly ridiculous because the size is way bigger than it needs - inches of padding on all sides.

Is there still no way to control a sheet size on iPad?

Example code:

struct ContentView: View {

    @State var showSheet = false

    var body: some View {
        Button("Show sheet") {
            showSheet = true
        }.sheet(isPresented: $showSheet) {
            VStack(spacing: 0) {
                Text("Title")
                Divider()
                Text("Line 1")
                Text("Line 2. Blah blah blah blah.")
                Divider()
                HStack {
                    Button("Cancel") { showSheet = false }
                    Divider()
                    Button("OK") { showSheet = false }
                }.fixedSize(horizontal: false, vertical: true)
            }
            .frame(minWidth: 0, minHeight: 0)
            .fixedSize()
        }
    }
}

The result:

you could try using .confirmationDialog("", isPresented: $showSheet) instead of the .sheet(...).

SwiftUI sheet size control on iPad
 
 
Q