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.

811 B
Raw Blame
import CodyncKit
import SwiftUI

/// A missing custom asset also falls back to a still frame, never the timer/sprite loop.
struct CustomActivityIcon: View {
    let attributes: BotActivityAttributes
    let size: CGFloat

    var body: some View {
        if let filename = attributes.currentCustomIconName, let image = ActivityIconCache.image(filename: filename, context: attributes.iconContext) {
            Image(uiImage: image).resizable().renderingMode(attributes.currentCustomIconTinted ? .template : .original)
                .scaledToFit().foregroundStyle(AvatarPalette.color(attributes.avatarColor))
                .frame(width: size, height: size)
        } else {
            CharacterAvatar(shape: attributes.avatarShape, color: attributes.avatarColor, size: size, still: true)
        }
    }
}