Created
June 5, 2019 21:02
-
-
Save nanotroy/49a5209d17db472a5d5a744d177fe479 to your computer and use it in GitHub Desktop.
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
@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