How can I resize bottom sheet height?

I am using bottom sheet for my app, and it is work correctly, but I want to use the half bottom sheet, is it possible?

     Image( "color")
              .resizable()
              .frame(width:45, height: 45)
              .sheet(isPresented: $showSheet, content: {
                  ScreenView()
                 })

In iOS 16, you can use the presentationDetents modifier.

ScreenView()
    .presentationDetents([.medium])

There are variations other than medium. See the documentation.

How can I resize bottom sheet height?
 
 
Q