tpmjs/apps/omega-mac/OmegaMac/Views/Chat/StreamingIndicator.swift
Ajax Davis 894f9842d1 fix(omega-mac): support macOS 14 by replacing macOS 15-only APIs
- Add `indirect` to recursive JSONSchemaAdditional enum
- Replace `.accent` ShapeStyle (macOS 15+) with `Color.accentColor`
- Add .gitignore for .build directory
2026-02-09 22:32:37 +10:00

24 lines
739 B
Swift

import SwiftUI
struct StreamingIndicator: View {
@State private var dotCount = 0
private let timer = Timer.publish(every: 0.4, on: .main, in: .common).autoconnect()
var body: some View {
HStack(spacing: 6) {
Image(systemName: "sparkles")
.foregroundStyle(Color.accentColor)
.font(.caption)
Text("Omega is thinking" + String(repeating: ".", count: dotCount))
.font(.callout)
.foregroundStyle(.secondary)
}
.padding(12)
.background(.quaternary.opacity(0.5))
.clipShape(RoundedRectangle(cornerRadius: 12))
.onReceive(timer) { _ in
dotCount = (dotCount + 1) % 4
}
}
}