Skip to content

Commit 6fec91c

Browse files
committed
Extract components
1 parent db28c4e commit 6fec91c

File tree

6 files changed

+3
-106
lines changed

6 files changed

+3
-106
lines changed

VoiceAgent/Chat/ChatScrollView.swift

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

VoiceAgent/Chat/ChatTextInputView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import LiveKit
1+
import LiveKitComponents
22
import SwiftUI
33

44
/// A multiplatform view that shows the chat input text field and send button.

VoiceAgent/Chat/ChatView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import LiveKit
1+
import LiveKitComponents
22
import SwiftUI
33

44
struct ChatView: View {

VoiceAgent/Helpers/AsyncButton.swift

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

VoiceAgent/Participant/AgentParticipantView.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,3 @@ struct AgentParticipantView: View {
5353
.matchedGeometryEffect(id: "agent", in: namespace!)
5454
}
5555
}
56-
57-
extension BarAudioVisualizer {
58-
init(agent: Agent?,
59-
barColor: Color = .primary,
60-
barCount: Int = 5,
61-
barCornerRadius: CGFloat = 100,
62-
barSpacingFactor: CGFloat = 0.015,
63-
barMinOpacity: CGFloat = 0.16,
64-
isCentered: Bool = true)
65-
{
66-
self.init(audioTrack: agent?.audioTrack, agentState: agent?.state ?? .listening, barColor: barColor, barCount: barCount, barCornerRadius: barCornerRadius, barSpacingFactor: barSpacingFactor, barMinOpacity: barMinOpacity, isCentered: isCentered)
67-
}
68-
}

VoiceAgent/Start/StartView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import LiveKit
1+
import LiveKitComponents
22
import SwiftUI
33

44
/// The initial view that is shown when the app is not connected to the server.

0 commit comments

Comments
 (0)