fix: Isolate views to @MainActor and use @ObservedObject for Swift 5.7 compatibility #56

Merged
gronod merged 1 commits from hotfix/macos12-mainactor-views into develop 2026-10-01 12:53:48 +01:00
Owner

Summary

Fixes Swift 5.7 / Xcode 14 compilation errors where @MainActor-isolated properties (SystemTelemetryStore.networkBandwidth, AlertEngine.activeAlerts, AlertEngine.history) were accessed from non-isolated view contexts:

  • Annotate QuickGlancePopoverView with @MainActor and wrap store with @ObservedObject.
  • Annotate AlertsView with @MainActor and update engine from @State to @ObservedObject.
  • Annotate AlertsSettingsView, ContentView, and ProcessDetailSheet with @MainActor.
  • Annotate MMMenuBarTests with @MainActor.
### Summary Fixes Swift 5.7 / Xcode 14 compilation errors where `@MainActor`-isolated properties (`SystemTelemetryStore.networkBandwidth`, `AlertEngine.activeAlerts`, `AlertEngine.history`) were accessed from non-isolated view contexts: - Annotate `QuickGlancePopoverView` with `@MainActor` and wrap `store` with `@ObservedObject`. - Annotate `AlertsView` with `@MainActor` and update `engine` from `@State` to `@ObservedObject`. - Annotate `AlertsSettingsView`, `ContentView`, and `ProcessDetailSheet` with `@MainActor`. - Annotate `MMMenuBarTests` with `@MainActor`.
gronod added 1 commit 2026-10-01 12:53:40 +01:00
gronod merged commit 68e6df2938 into develop 2026-10-01 12:53:48 +01:00
gronod deleted branch hotfix/macos12-mainactor-views 2026-10-01 12:53:48 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/MacMonitor#56