Skip to content

Commit 90b2d08

Browse files
committed
Update SiriWaveView to 1.1.0
1 parent 18963e0 commit 90b2d08

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let package = Package(
1818
.package(url: "https://github.com/alfianlosari/ChatGPTSwift.git", from: "2.2.5"),
1919
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.3.0"),
2020
.package(url: "https://github.com/alfianlosari/HighlighterSwift.git", from: "1.0.0"),
21-
.package(url: "https://github.com/alfianlosari/SiriWaveView.git", from: "1.0.0")
21+
.package(url: "https://github.com/alfianlosari/SiriWaveView.git", from: "1.1.0")
2222
],
2323
targets: [
2424
.target(

Sources/ChatGPTUI/Views/VoiceChatView.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public struct VoiceChatView<CustomContent: View>: View {
4747

4848
HStack {
4949
if case .playingSpeech = self.vm.state {
50-
SiriWaveView()
51-
.power(power: vm.audioPower)
50+
SiriWaveView(power: $vm.audioPower)
5251
.frame(height: 64)
5352
}
5453

@@ -69,8 +68,7 @@ public struct VoiceChatView<CustomContent: View>: View {
6968
var overlayView: some View {
7069
switch vm.state {
7170
case .recordingSpeech:
72-
SiriWaveView()
73-
.power(power: vm.audioPower)
71+
SiriWaveView(power: $vm.audioPower)
7472
.frame(height: 256)
7573

7674
case .processingSpeech:

0 commit comments

Comments
 (0)