I had a similar problem but putting an extra text for count dow like this
HStack{
Text(timerInterval: Date()...Date().addingTimeInterval(120))
Text("min")
Spacer()
}
The result was
| 0:15 ------------------------- min |
But if you use
Text(timerInterval: startTime...endDate, showsHours:
false
) + Text(" min")
You obtains this
| 0:15 min ------------------------- |
full example:
HStack{
Text(timerInterval: Date()...Date().addingTimeInterval(120)) + Text("min")
Spacer()
}
The reason is that the system don't recognize "min" like part of text of time, and time have an dynamic width so you put it until the final of HStack.
Also you can make a var / func to group both text and then give format like only one.
------
I hope that this can help some one.