Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(ios): keep menu choices building on Xcode 26

leepokai4e8cbbd6cabd
diff --git a/apps/ios/Kit/Sources/CodyncUI/Controls.swift b/apps/ios/Kit/Sources/CodyncUI/Controls.swift
index d01d1b51..216d9731 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Controls.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Controls.swift
@@ -190,10 +190,13 @@ private struct ContextActions: ViewModifier {
}
/// A `MenuItem` inside a system `Menu` or `contextMenu`: choices as checkmarked toggles.
-@MainActor @ViewBuilder private func systemMenuRow(_ item: MenuItem) -> some View {
+@ViewBuilder private func systemMenuRow(_ item: MenuItem) -> some View {
let role: ButtonRole? = item.destructive ? .destructive : nil
if let selected = item.selected {
- Toggle(isOn: Binding(get: { selected }, set: { @MainActor _ in item.action() })) {
+ // The binding's setter must be Sendable, but SwiftUI only calls it from the menu, on the
+ // main thread where the action was made.
+ nonisolated(unsafe) let action = item.action
+ Toggle(isOn: Binding(get: { selected }, set: { _ in action() })) {
if let icon = item.icon { SwiftUI.Label(item.title, systemImage: icon) } else { Text(item.title) }
}
} else if let icon = item.icon {