spb/zyquo-local Public MIT
Native macOS AI chat that runs LLMs 100% locally on Apple Silicon with MLX — no cloud, no API keys.
Swift 97.2%
Shell 1.8%
Makefile 1%
1//2// RootView.swift3// Zyquo Local4//5// Author: Simon-Pierre Boucher6// Mail: contact@spboucher.ai7//89import SwiftUI1011/// Main window: sidebar + detail column (chat or model library).12struct RootView: View {13 @Environment(AppModel.self) private var app14 private var theme = ThemeStore.shared1516 init() {}1718 var body: some View {19 NavigationSplitView {20 SidebarView()21 .navigationSplitViewColumnWidth(22 min: ZyquoTheme.sidebarWidth, ideal: ZyquoTheme.sidebarWidth, max: 320)23 } detail: {24 switch app.route {25 case .chat:26 ChatView()27 case .library:28 LibraryView()29 }30 }31 .background(ZyquoTheme.background)32 .preferredColorScheme(theme.mode.colorScheme)33 .alert(34 "Something went wrong",35 isPresented: Binding(36 get: { app.lastError != nil },37 set: { if !$0 { app.lastError = nil } }38 )39 ) {40 Button("OK") { app.lastError = nil }41 } message: {42 Text(app.lastError ?? "")43 }44 }45}46