Skip to content

Commit 283e9d5

Browse files
committed
UPDATE: ScrollView Top Padding
1 parent f6be04f commit 283e9d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenTDS/Component/ScrollView/ScrollView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public struct TossScrollView<Content: View>: View {
3333
Text(title)
3434
.font(.system(size: 17, weight: .medium))
3535
.opacity(shrink ? 1 : 0)
36-
.padding(.vertical, 12)
36+
.padding(.vertical, 6)
3737
.frame(maxWidth: .infinity)
3838
GeometryReader { outsideProxy in
3939
ScrollView(showsIndicators: showsIndicators) {
@@ -46,7 +46,7 @@ public struct TossScrollView<Content: View>: View {
4646
DispatchQueue.main.async {
4747
let proxy = outsideProxy.frame(in: .global).minY - newValue
4848
withAnimation(.default) {
49-
shrink = proxy > 36
49+
shrink = proxy > 33
5050
}
5151
}
5252
}

0 commit comments

Comments
 (0)