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): stop the working live activity card from going black

leepokaide26fd31d25e
diff --git a/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swift b/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swift
index 01bb58d5..b67b0c0d 100644
--- a/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swift
+++ b/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swift
@@ -76,11 +76,12 @@ public struct ActivityCaption: View {
Text(state.caption)
.foregroundStyle(state.captionTint)
.contentTransition(.interpolate)
- // The step truncates first; the time always stays whole.
+ .layoutPriority(1)
+ // No fixedSize on a timer Text: a Live Activity can't lay one out at its ideal width
+ // and draws the whole card black. Unconstrained, it takes the width left over.
if let since = state.elapsedStart(startedAt) {
Text("·").foregroundStyle(Palette.tertiary)
Text(since, style: .timer).monospacedDigit().foregroundStyle(Palette.secondary)
- .fixedSize().layoutPriority(1)
}
}
.font(.system(size: 12))