Files
hope-voice-api/Sources/App/VoiceApp.swift
T

27 lines
590 B
Swift

import SwiftUI
import LiveKit
@main
struct VoiceApp: App {
@StateObject private var settings = SettingsStore()
init() {
LiveKitSDK.setLogLevel(.debug)
}
var body: some Scene {
WindowGroup {
ConversationView(settings: settings)
.tint(HopeStyle.tint)
}
}
}
enum HopeStyle {
static let tint = Color(uiColor: UIColor { traits in
traits.userInterfaceStyle == .dark
? UIColor(red: 0.43, green: 0.68, blue: 1, alpha: 1)
: UIColor(red: 0.12, green: 0.32, blue: 0.68, alpha: 1)
})
}