You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var audioFiles: [AudioFile] // set somewhere on init
var body: some View {
let audioFile = audioFiles[loadedFileIndex]
Picker("Sound File", selection: $loadedFileIndex) {
ForEach(audioFiles.indices, id: \.self) { index in
Text("\(.audioFiles[index].name)")
}
}
AudioFileWaveform(url: audioFile.url, color: .blue)
}
This will not update AudioFileWaveform with the new file chosen.
Activity
Refresh waveform when a new URL is set, Issue AudioKit#89