-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Shield] Logic for count by name #20
Conversation
} | ||
let shieldAttemptService = ShieldAttemptService.shared | ||
|
||
private var today: Date { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can move to shared as Date extension
} | ||
|
||
func configuration( | ||
shielding name: String | ||
) -> ShieldConfiguration { | ||
blocked += 1 | ||
shieldAttemptService.add(by: name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move this out of configuration and store shielding token in addition to name
@@ -7,7 +7,14 @@ extension TimerView { | |||
@Environment(\.appState) var appState | |||
|
|||
@AppStorage("completed", store: .group) var completed: Int = 0 | |||
@AppStorage("blocked", store: .group) var blocked: Int = 0 | |||
|
|||
private var today: Date { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// same here
No description provided.