mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
BugFix: Timer UI
This commit is contained in:
parent
1b24e042de
commit
5a503b8238
2 changed files with 38 additions and 9 deletions
|
|
@ -215,6 +215,8 @@ struct NotchTimerView: View {
|
|||
.foregroundStyle(timerManager.isOvertime ? Color.red : .white)
|
||||
.contentTransition(.numericText())
|
||||
.animation(.smooth(duration: 0.25), value: timerManager.remainingTime)
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.8)
|
||||
|
||||
if timerManager.isOvertime {
|
||||
Text("Overtime")
|
||||
|
|
@ -222,7 +224,7 @@ struct NotchTimerView: View {
|
|||
.foregroundStyle(.red)
|
||||
}
|
||||
}
|
||||
.frame(width: 150, alignment: .trailing)
|
||||
.frame(width: 190, alignment: .trailing)
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue