mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Squash merge of 1,462 upstream commits with openclaw→hanzo-bot naming transforms applied. Conflicts resolved favoring our main branch to preserve existing customizations. Key upstream additions: - iOS Security Stack (concurrency locks, runtime guards, TTS fallback) - Discord CDN hostname allowlisting for SSRF protection - Discord mention handling improvements - Various bug fixes and stability improvements
24 lines
692 B
Swift
24 lines
692 B
Swift
import SwiftUI
|
|
|
|
struct VoiceWakeToast: View {
|
|
var command: String
|
|
var brighten: Bool = false
|
|
|
|
var body: some View {
|
|
HStack(spacing: 10) {
|
|
Image(systemName: "mic.fill")
|
|
.font(.subheadline.weight(.semibold))
|
|
.foregroundStyle(.primary)
|
|
|
|
Text(self.command)
|
|
.font(.subheadline.weight(.semibold))
|
|
.foregroundStyle(.primary)
|
|
.lineLimit(1)
|
|
.truncationMode(.tail)
|
|
}
|
|
.statusGlassCard(brighten: self.brighten, verticalPadding: 10)
|
|
.accessibilityLabel("Voice Wake triggered")
|
|
.accessibilityValue("Command: \(self.command)")
|
|
}
|
|
}
|