Skip to content

Commit 60150c4

Browse files
committed
FIX: Dismiss Condition
1 parent 984b69c commit 60150c4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Sources/OpenTDS/Component/ScrollView/ScrollView.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ public struct TossScrollView<Content: View>: View {
3737
VStack {
3838
ZStack {
3939
HStack {
40-
Button(action: {
41-
presentationMode.wrappedValue.dismiss()
42-
}) {
43-
TossIcon.chevron
44-
.resizable()
45-
.frame(width: 10.14, height: 17.77)
46-
.foregroundColor(Color(.label))
40+
if showsDismiss {
41+
Button(action: {
42+
presentationMode.wrappedValue.dismiss()
43+
}) {
44+
TossIcon.chevron
45+
.resizable()
46+
.frame(width: 10.14, height: 17.77)
47+
.foregroundColor(Color(.label))
48+
}
4749
}
4850
Spacer()
4951
}

0 commit comments

Comments
 (0)