Using System Sound Kills sound for other apps

When I activate a system sound on my iphone from my swiftUI app the sound works fine. But if I try to play a youtube video there is no sound. The only way I can get sound back is to reset my iphone. Thanks for any help

func dismissView() {
let mySystemSound: SystemSoundID = 1322
AudioServicesPlaySystemSound(mySystemSound)
self.presentation.wrappedValue.dismiss()
}

@flmcl Do you still have issues with this?