Skip to content

Commit 403b5e9

Browse files
committed
Naming
1 parent 146a97c commit 403b5e9

File tree

9 files changed

+11
-24
lines changed

9 files changed

+11
-24
lines changed

VoiceAgent/App/AppView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ struct AppView: View {
110110
!localMedia.isCameraEnabled,
111111
!localMedia.isScreenShareEnabled
112112
{
113-
AgentListeningView()
113+
Text("agent.listening")
114+
.font(.system(size: 15))
115+
.shimmering()
116+
.transition(.blurReplace)
114117
}
115118
}
116119
.animation(.default, value: session.messages.isEmpty)

VoiceAgent/Interactions/TextInteractionView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct TextInteractionView: View {
3939
private func participants() -> some View {
4040
HStack {
4141
Spacer()
42-
AgentParticipantView()
42+
AgentView()
4343
.frame(maxWidth: session.agent.avatarVideoTrack != nil ? 50 * .grid : 25 * .grid)
4444
ScreenShareView()
4545
LocalParticipantView()

VoiceAgent/Interactions/VisionInteractionView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct VisionInteractionView: View {
2727

2828
@ViewBuilder
2929
private func agent() -> some View {
30-
AgentParticipantView()
30+
AgentView()
3131
.frame(width: 175 * .grid)
3232
.frame(maxHeight: .infinity)
3333
.glassBackgroundEffect()

VoiceAgent/Interactions/VoiceInteractionView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct VoiceInteractionView: View {
2424
HStack {
2525
Spacer()
2626
.frame(width: 50 * .grid)
27-
AgentParticipantView()
27+
AgentView()
2828
VStack {
2929
Spacer()
3030
ScreenShareView()
@@ -39,7 +39,7 @@ struct VoiceInteractionView: View {
3939
@ViewBuilder
4040
private func compact() -> some View {
4141
ZStack(alignment: .bottom) {
42-
AgentParticipantView()
42+
AgentView()
4343
.frame(maxWidth: .infinity, maxHeight: .infinity)
4444
.ignoresSafeArea()
4545
HStack {

VoiceAgent/Participant/AgentParticipantView.swift renamed to VoiceAgent/Media/AgentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import LiveKitComponents
33
/// A view that combines the avatar camera view (if available)
44
/// or the audio visualizer (if available).
55
/// - Note: If both are unavailable, the view will show a placeholder visualizer.
6-
struct AgentParticipantView: View {
6+
struct AgentView: View {
77
@EnvironmentObject private var session: Session
88

99
@Environment(\.namespace) private var namespace

VoiceAgent/Participant/AgentListeningView.swift

Lines changed: 0 additions & 16 deletions
This file was deleted.

VoiceAgent/VoiceAgentApp.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ struct VoiceAgentApp: App {
1212
// To use the LiveKit Cloud sandbox (development only)
1313
// - Enable your sandbox here https://cloud.livekit.io/projects/p_/sandbox/templates/token-server
1414
// - Create .env.xcconfig with your LIVEKIT_SANDBOX_ID
15-
private static let sandboxId = Bundle.main.object(forInfoDictionaryKey: "LiveKitSandboxId") as! String
15+
private static let sandboxID = Bundle.main.object(forInfoDictionaryKey: "LiveKitSandboxId") as! String
1616

1717
private let session = Session(
18-
tokenSource: SandboxTokenSource(id: Self.sandboxId),
18+
tokenSource: SandboxTokenSource(id: Self.sandboxID),
1919
options: SessionOptions(room: Room(roomOptions: RoomOptions(defaultScreenShareCaptureOptions: ScreenShareCaptureOptions(useBroadcastExtension: true))))
2020
)
2121

0 commit comments

Comments
 (0)