Skip to content

Commit 7449d33

Browse files
committed
UPDATE: Button Position
1 parent a776086 commit 7449d33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/OpenTDS/Component/ScrollView/ScrollView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public struct TossScrollView<C: View>: View {
4242
public var body: some View {
4343
VStack {
4444
ZStack {
45+
Text(title)
46+
.font(.system(size: 17, weight: .medium))
47+
.opacity(shrink ? 1 : 0)
48+
.padding(.vertical, 6)
4549
HStack(spacing: 26) {
4650
if backButtonExists {
4751
Button(action: {
@@ -65,10 +69,6 @@ public struct TossScrollView<C: View>: View {
6569
}
6670
}
6771
.padding(.horizontal, 18)
68-
Text(title)
69-
.font(.system(size: 17, weight: .medium))
70-
.opacity(shrink ? 1 : 0)
71-
.padding(.vertical, 6)
7272
}
7373
.frame(maxWidth: .infinity)
7474
GeometryReader { outsideProxy in

0 commit comments

Comments
 (0)