Created
April 2, 2020 05:20
-
-
Save badrinathvm/ce74a6a9b1246de27f735322c32ffdec to your computer and use it in GitHub Desktop.
OnApper publisher sends valyue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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