     ///     the system dismisses the sheet and replaces it with a new one
     ///     using the same process.
     ///   - detents: An object that represents a height where a sheet naturally rests.
-    ///   - prefersGrabberVisible: A Boolean value that determines whether the sheet shows a grabber at the top.
-    ///   - preferredCornerRadius: The corner radius that the sheet attempts to present with.
+    ///   - prefersDragIndicator: A Boolean value that determines whether the sheet shows a grabber at the top.
     ///   - onDismiss: The closure to execute when dismissing the sheet.
     ///   - content: A closure returning the content of the sheet.
     @ViewBuilder
     func bottomSheet<Item, Content>(
         item: Binding<Item?>,
-        detents: [UISheetPresentationController.Detent] = [.medium(), .large()],
-        prefersGrabberVisible: Bool = true,
-        preferredCornerRadius: CGFloat? = nil,
+        detents: Set<BottomSheetDetents> = [.medium, .large],
+        prefersDragIndicator: Bool? = nil,
         onDismiss: (() -> Void)? = nil,
         @ViewBuilder content: @escaping (Item) -> Content
     ) -> some View where Item: Identifiable, Content: View {

    ///   - isPresented: A binding to a `Boolean` value that determines whether to present
    ///                  the sheet that you create in the modifier's `content` closure.
    ///   - detents: An object that represents a height where a sheet naturally rests.
    ///   - prefersGrabberVisible: A Boolean value that determines whether the sheet shows a grabber at the top.
    ///   - preferredCornerRadius: The corner radius that the sheet attempts to present with.
    ///   - onDismiss: The closure to execute when dismissing the sheet.
    ///   - content: A closure that returns the content of the sheet.
    @ViewBuilder
    func bottomSheet<Content: View>(
        isPresented: Binding<Bool>,
        detents: [UISheetPresentationController.Detent] = [.medium(), .large()],
        prefersGrabberVisible: Bool = true,
        preferredCornerRadius: CGFloat? = nil,
        onDismiss: (() -> Void)? = nil,
        @ViewBuilder content: @escaping () -> Content
    ) -> some View {
        background(
            BottomSheet(
                isPresented: isPresented,
                detents: detents,
                prefersGrabberVisible: prefersGrabberVisible,
                preferredCornerRadius: preferredCornerRadius,
                content: content,
                onDismiss: onDismiss
            )
        )
    }
}


                }
            ),
            detents: detents,
            prefersDragIndicator: prefersDragIndicator,
            onDismiss: onDismiss,
            content: { item.wrappedValue.map(content) }
        )
