Update demo
This commit is contained in:
parent
de2379a1bf
commit
ee6233dc4f
@ -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() }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user