Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
@State var nowDate: Date = Date()
let referenceDate: Date
var timer: Timer {
Timer.scheduledTimer(withTimeInterval: 1, repeats: true) {_ in
self.nowDate = Date()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment