Skip to content

fix: day toggle not updating in non-billable rule editor on release build#19

Merged
wiseelf merged 1 commit into
mainfrom
fix/non-billable-day-toggle
Jun 26, 2026
Merged

fix: day toggle not updating in non-billable rule editor on release build#19
wiseelf merged 1 commit into
mainfrom
fix/non-billable-day-toggle

Conversation

@wiseelf

@wiseelf wiseelf commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix day buttons in non-billable window not reflecting selection changes in release builds — Set<Int> mutation via .remove()/.insert() bypasses SwiftUI change detection when optimized; now assigns a new value explicitly (days = d)
  • Exclude TimeTracker.entitlements from SPM target to silence the unhandled-file warning on swift build

Test plan

  • Build with swift build -c release, open settings → non-billable window, click day buttons and verify selection state updates visually
  • Verify swift build no longer warns about unhandled entitlements file

…uild

Mutating Set<Int> state via .remove()/.insert() directly bypasses SwiftUI's
change detection in release builds. Use explicit assignment (days = d) instead.

Also exclude TimeTracker.entitlements from SPM target to silence the
unhandled file warning during swift build.
@wiseelf wiseelf merged commit 79f28bb into main Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant