fix(conversation-assistant): Swift 6.2 compatibility
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
5e09cf7a8e
commit
703a6637f6
2 changed files with 4 additions and 4 deletions
|
|
@ -39,7 +39,7 @@ struct MenuBarView: View {
|
|||
|
||||
Text(AppVersion.displayVersion)
|
||||
.font(.caption2)
|
||||
.foregroundColor(.tertiary)
|
||||
.foregroundStyle(.tertiary)
|
||||
|
||||
Spacer()
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue