Skip to content

Commit

Permalink
Update SiriWaveView to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alfianlosari committed May 31, 2024
1 parent 18963e0 commit 90b2d08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "059341db1edbdf782be5f93d9445db2e8a92330efe22e3ce993da79741c9aa42",
"originHash" : "51ed7ea331aea83343645d6dc32e6073d4a0478df108efc7368bb1601074bbbf",
"pins" : [
{
"identity" : "async-http-client",
Expand Down Expand Up @@ -42,8 +42,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/alfianlosari/SiriWaveView.git",
"state" : {
"revision" : "86e79e3f9c3089061976d3590b5459842f8610cd",
"version" : "1.0.0"
"revision" : "711287cd8d6ef16b5dbcced5ead82d93d0cb3c88",
"version" : "1.1.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let package = Package(
.package(url: "https://github.com/alfianlosari/ChatGPTSwift.git", from: "2.2.5"),
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.3.0"),
.package(url: "https://github.com/alfianlosari/HighlighterSwift.git", from: "1.0.0"),
.package(url: "https://github.com/alfianlosari/SiriWaveView.git", from: "1.0.0")
.package(url: "https://github.com/alfianlosari/SiriWaveView.git", from: "1.1.0")
],
targets: [
.target(
Expand Down
6 changes: 2 additions & 4 deletions Sources/ChatGPTUI/Views/VoiceChatView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public struct VoiceChatView<CustomContent: View>: View {

HStack {
if case .playingSpeech = self.vm.state {
SiriWaveView()
.power(power: vm.audioPower)
SiriWaveView(power: $vm.audioPower)
.frame(height: 64)
}

Expand All @@ -69,8 +68,7 @@ public struct VoiceChatView<CustomContent: View>: View {
var overlayView: some View {
switch vm.state {
case .recordingSpeech:
SiriWaveView()
.power(power: vm.audioPower)
SiriWaveView(power: $vm.audioPower)
.frame(height: 256)

case .processingSpeech:
Expand Down

0 comments on commit 90b2d08

Please sign in to comment.