ToolbarItemGroup(placement: .keyboard) is not showed with Sheet

struct ContentView: View {
  @State var isPresented = false

  var body: some View {
    Button {
      isPresented.toggle()
    } label: {
      Text("Button")
    }
    .sheet(isPresented: $isPresented) {
      SubView()
    }
  }
}

struct SubView: View {
  @State var text = ""

  var body: some View {
    NavigationStack {
      TextEditor(text: $text)
        .toolbar {
          ToolbarItemGroup(placement: .bottomBar) {
            Button("Click") {
            }
          }
          ToolbarItemGroup(placement: .keyboard) {
            Button("Click") {
            }
          }
        }
    }
  }
}

Replies

I'm seeing this exact same issue. I haven't had success getting this to run at all. And its in a NavigationStack/View which has always been the "you need to do this first" thing that everyone responds to on stack overflow.

Its broken as far as I can tell

Is this bug or problem?