Archived
XcodeGen project, SwiftUI iOS 17 target dev.shane.voice, SPM livekit-client-swift 2.16.0, mic usage + ATS LAN exception in Info.plist, placeholder conversation screen and Settings with server URL field.
37 lines
1007 B
Swift
37 lines
1007 B
Swift
import SwiftUI
|
|
|
|
struct ConversationView: View {
|
|
@ObservedObject var settings: SettingsStore
|
|
|
|
var body: some View {
|
|
NavigationStack {
|
|
VStack(spacing: 24) {
|
|
Spacer()
|
|
Circle()
|
|
.fill(.blue.gradient)
|
|
.frame(width: 96, height: 96)
|
|
Text("Hope Voice")
|
|
.font(.title.bold())
|
|
Text(settings.trimmedServerURL)
|
|
.font(.footnote)
|
|
.foregroundStyle(.secondary)
|
|
Spacer()
|
|
}
|
|
.navigationTitle("Voice")
|
|
.toolbar {
|
|
ToolbarItem(placement: .topBarTrailing) {
|
|
NavigationLink {
|
|
SettingsView(settings: settings)
|
|
} label: {
|
|
Image(systemName: "gearshape")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ConversationView(settings: SettingsStore())
|
|
}
|