Skip to content

Commit

Permalink
Fixing scaffold sheet height
Browse files Browse the repository at this point in the history
  • Loading branch information
Glenn Brannelly committed Jul 5, 2022
1 parent 50129e2 commit 416e61e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public struct ScaffoldBottomSheet<Header: View, Body: View>: 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
)
}
Expand Down

0 comments on commit 416e61e

Please sign in to comment.