Swift 6
-

Fix: AVAudioPlayer.stop() Does Nothing Because the Players Array Is Empty in SwiftUI
Why your SwiftUI game keeps playing sounds after calling stop(): the players array is empty because a second AVAudioPlayer is created outside…

Why your SwiftUI game keeps playing sounds after calling stop(): the players array is empty because a second AVAudioPlayer is created outside…