From 703a6637f62debca5b24b89820480a4d8f3078e2 Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Mon, 29 Dec 2025 21:52:09 -0800 Subject: [PATCH] fix(conversation-assistant): Swift 6.2 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use .foregroundStyle(.tertiary) instead of .foregroundColor(.tertiary) to fix ShapeStyle vs Color type mismatch error - Restore double-paren selector format Selector(("...")) to suppress warnings about private Objective-C selectors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../macos/Sources/Views/MenuBarView.swift | 2 +- .../macos/Sources/Views/MenuBarViewModel.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift b/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift index 053bf29a4..c0fddf0b8 100644 --- a/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift +++ b/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift @@ -39,7 +39,7 @@ struct MenuBarView: View { Text(AppVersion.displayVersion) .font(.caption2) - .foregroundColor(.tertiary) + .foregroundStyle(.tertiary) Spacer() diff --git a/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift b/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift index 04aaa99d8..e48cb37b3 100644 --- a/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift +++ b/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift @@ -141,11 +141,11 @@ class MenuBarViewModel: ObservableObject { // Activate the app (required for menu bar apps to show settings) NSApp.activate(ignoringOtherApps: true) // Open settings window - macOS 14+ renamed to showSettingsWindow, older versions use showPreferencesWindow - // Note: Using string-based selector since #selector requires @objc exposure which NSApplication methods don't have + // Note: Using double-paren selector format to suppress warnings about private Objective-C selectors if #available(macOS 14, *) { - NSApp.sendAction(Selector("showSettingsWindow:"), to: nil, from: nil) + NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil) } else { - NSApp.sendAction(Selector("showPreferencesWindow:"), to: nil, from: nil) + NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil) } }