diff --git a/Sources/ManySheets/ScaffoldBottomSheet/ScaffoldBottomSheet.swift b/Sources/ManySheets/ScaffoldBottomSheet/ScaffoldBottomSheet.swift index efa988c..06cdaad 100644 --- a/Sources/ManySheets/ScaffoldBottomSheet/ScaffoldBottomSheet.swift +++ b/Sources/ManySheets/ScaffoldBottomSheet/ScaffoldBottomSheet.swift @@ -168,7 +168,7 @@ public struct ScaffoldBottomSheet: View { bodyContent .frame( width: proxy.size.width, - height: abs(proxy.size.height - position + dragState.translation.height + proxy.safeAreaInsets.bottom), + height: max(proxy.size.height - (!dragState.isDragging ? position : 0.0), 0.0), alignment: .top ) }