mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Fucked up a lot - need to fix
This commit is contained in:
parent
a9f9ac3aa8
commit
eefd951522
6 changed files with 236 additions and 44 deletions
|
|
@ -70,7 +70,7 @@ struct NotchTimerView: View {
|
|||
// Timer icon in center
|
||||
Image(systemName: "timer")
|
||||
.font(.system(size: 32, weight: .medium))
|
||||
.foregroundStyle(timerManager.currentColor)
|
||||
.foregroundStyle(openIconColor)
|
||||
.scaleEffect(timerManager.isRunning && timerManager.isTimerActive ? 1.1 : 1.0)
|
||||
.animation(
|
||||
timerManager.isRunning && timerManager.isTimerActive ?
|
||||
|
|
@ -287,6 +287,13 @@ struct NotchTimerView: View {
|
|||
}
|
||||
}
|
||||
|
||||
private extension NotchTimerView {
|
||||
var openIconColor: Color {
|
||||
guard timerManager.isTimerActive && timerManager.isRunning else { return .white.opacity(0.9) }
|
||||
return timerManager.currentColor
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
NotchTimerView()
|
||||
.environmentObject(DynamicIslandViewModel())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue