From 416e61e9dc9bcec8de634633810d8f40ed92ddcf Mon Sep 17 00:00:00 2001 From: Glenn Brannelly Date: Tue, 5 Jul 2022 15:13:34 -0400 Subject: [PATCH] Fixing scaffold sheet height --- .../ManySheets/ScaffoldBottomSheet/ScaffoldBottomSheet.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) }