My simple timer is defined as:
let now = Date.now
var start = Calendar.current.date(byAdding: .second, value: Int(16), to: now)!
var end = Calendar.current.date(byAdding: .second, value: Int(16), to: start)!
Text(timerInterval: start...end, countsDown: false)
I was expecting to start counting it like: 00:16
, 00:17
, 00:18
... 00:32
.
But it works like 00:00
, 00:01
... 00:16
and starts counting 16 seconds after load.
How can I start it from given interval and end on a given interval from future?