Skip to content

Commit

Permalink
UPDATE: ScrollView Top Padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercen-Lee committed Jul 12, 2023
1 parent f6be04f commit 283e9d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/OpenTDS/Component/ScrollView/ScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public struct TossScrollView<Content: View>: View {
Text(title)
.font(.system(size: 17, weight: .medium))
.opacity(shrink ? 1 : 0)
.padding(.vertical, 12)
.padding(.vertical, 6)
.frame(maxWidth: .infinity)
GeometryReader { outsideProxy in
ScrollView(showsIndicators: showsIndicators) {
Expand All @@ -46,7 +46,7 @@ public struct TossScrollView<Content: View>: View {
DispatchQueue.main.async {
let proxy = outsideProxy.frame(in: .global).minY - newValue
withAnimation(.default) {
shrink = proxy > 36
shrink = proxy > 33
}
}
}
Expand Down

0 comments on commit 283e9d5

Please sign in to comment.