Skip to content

Instantly share code, notes, and snippets.

@badrinathvm
Created April 2, 2020 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badrinathvm/ce74a6a9b1246de27f735322c32ffdec to your computer and use it in GitHub Desktop.
Save badrinathvm/ce74a6a9b1246de27f735322c32ffdec to your computer and use it in GitHub Desktop.
OnApper publisher sends valyue
.onAppear {
Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { (timer) in
if self.currentIndex < 5 {
self.publisher.send(AnimationStatus.start(index: self.currentIndex))
self.currentIndex += 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment