Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@State var timeCount: Double = 0.0
var timer: Timer {
Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) {timer in
self.timeCount += 0.1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment