Skip to content

Commit

Permalink
Feature/timer/UI (#88)
Browse files Browse the repository at this point in the history
* ui

* ui
  • Loading branch information
donggyushin authored Aug 13, 2024
1 parent 0b4247f commit 038fb28
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public struct FloatingTimerView: View {
.padding(.trailing)
}
}
.opacity(0.6)
.opacity(0.9)
.shadow(radius: 6)
}
}
}
Expand All @@ -44,11 +45,16 @@ public struct FloatingTimerView: View {

date = Calendar.current.date(byAdding: .second, value: 90, to: date)!

return FloatingTimerView(timer: .init(domain: .init(targetDate: date)))
.contextMenu {
Button("Cancel") {
print("cancel")
return ZStack {

Rectangle()

FloatingTimerView(timer: .init(domain: .init(targetDate: date)))
.contextMenu {
Button("Cancel") {
print("cancel")
}
}
}
.preferredColorScheme(.dark)
.preferredColorScheme(.dark)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public struct NavigationView: View {
viewModel.cancelTimer()
}
}
.padding(.top, 40)
}

Spacer()
Expand Down

0 comments on commit 038fb28

Please sign in to comment.