Multiple modals with custom presentation detents iOS 16

Hey,

It seems that there's no way to have multiple modals with custom presentation detents.

struct ContentView: View {

    @State private var sheetOne: Bool = true
    @State private var sheetTwo: Bool = false


    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
            Text("Hello, world!")
        }
        .sheet(isPresented: $sheetOne) {
            SheetOne(skata: $sheetTwo)
                .presentationDetents([.medium, .large])
                .sheet(isPresented: $sheetTwo) {
                    SheetTwo()
                        .presentationDetents([.fraction(0.3)])
                }
        }
        .padding()
    }
}
...

The above would result on SheetOne adjust its height to the height of SheetTwo when presented

Is this a bug or intended?

Thanks

Multiple modals with custom presentation detents iOS 16
 
 
Q