improvements on fake chat bubble animation

pull/891/head
Ryan Zhao 2 years ago
parent b7e78c5806
commit 1231de2caa

@ -34,6 +34,10 @@ struct LandingView: View {
FakeChat($numberOfBubblesShown)
.onAppear {
Timer.scheduledTimerOnMainThread(withTimeInterval: 0.2, repeats: false) { _ in
withAnimation(.spring().speed(0.68)) {
numberOfBubblesShown = 1
}
Timer.scheduledTimerOnMainThread(withTimeInterval: 1.5, repeats: true) { timer in
withAnimation(.spring().speed(0.68)) {
numberOfBubblesShown += 1
@ -43,6 +47,7 @@ struct LandingView: View {
}
}
}
}
Spacer()
}

Loading…
Cancel
Save