SPB Git

Repository Public

AppSection.swift 1.2 KB 24 lines swift

1// Author: Simon-Pierre Boucher — contact@spboucher.ai2// File: Packages/LocalChatUI/Sources/App/AppSection.swift3// Description: The top-level destinations of Local Chat, identical on macOS, iPadOS and iOS.4import SwiftUI56public enum AppSection: String, CaseIterable, Identifiable, Sendable, Hashable {7    case chat, models, arena, observatory, knowledge, agents, settings8    public var id: String { rawValue }9    public var title: String {10        switch self {11        case .chat: "Chats"; case .models: "Models"; case .arena: "Arena"; case .observatory: "Observatory"12        case .knowledge: "Knowledge"; case .agents: "Agents"; case .settings: "Settings"13        }14    }15    public var symbol: String {16        switch self {17        case .chat: "bubble.left.and.bubble.right"; case .models: "shippingbox"; case .arena: "square.split.2x1"18        case .observatory: "gauge.with.dots.needle.67percent"; case .knowledge: "books.vertical"; case .agents: "sparkle"; case .settings: "gearshape"19        }20    }21    /// Destinations that appear as studios (everything except chats and settings).22    public static let studios: [AppSection] = [.models, .arena, .observatory, .knowledge, .agents]23}24
Files main
Menu

Theme