Update demo

This commit is contained in:
david-swift 2024-09-04 21:31:37 +02:00
parent de2379a1bf
commit ee6233dc4f

View File

@ -17,12 +17,12 @@ struct TransitionDemo: View {
VStack { VStack {
if firstView { if firstView {
Text("First View") Text("First View")
.transition(.slideDown)
.accent() .accent()
.transition(.slideDown)
} else { } else {
Text("Second View") Text("Second View")
.transition(.slideUp)
.success() .success()
.transition(.slideUp)
} }
} }
.modifyContent(Text.self) { $0.title2().padding() } .modifyContent(Text.self) { $0.title2().padding() }