Part of EPIC #193. Depends on #201.
Description
Add a FocusedValues key currentWindowID: WindowID?. In each scene-root view, call .focusedValue(\.currentWindowID, windowID). Inside .commands { }, read via @FocusedValue(\.currentWindowID) and dispatch actions into the scoped store of the focused window.
Acceptance Criteria
Module / Layer
Relay / RelayApp + scene roots
Complexity
Medium
Part of EPIC #193. Depends on #201.
Description
Add a
FocusedValueskeycurrentWindowID: WindowID?. In each scene-root view, call.focusedValue(\.currentWindowID, windowID). Inside.commands { }, read via@FocusedValue(\.currentWindowID)and dispatch actions into the scoped store of the focused window.Acceptance Criteria
Cmd+Tin window A creates a tab in window A, not in BCmd+Shift+Win window A closes the project only in A.disabled()swiftlint lint --strictcleanModule / Layer
Relay / RelayApp + scene roots
Complexity
Medium