SystemSounds
Table of Contents
Summary
This is a Swift/SwiftUI example showing the use of iOS/iPadOS system sounds.
Blog post for this example
Usage
Read the blog post. Or just read the code.
e.g. playing a system sound.
import AVFoundation
...
var soundID: SystemSoundID = .zero
let osstatus = AudioServicesCreateSystemSoundID(url as CFURL, &soundID)
if osstatus != noErr {
print("could not get system sound at url: \(url.absoluteString)")
print("osstatus: \(osstatus)")
return
}
AudioServicesPlaySystemSound(soundID)
Issues
If you find one, please add it to Issues
Buy my kitty Giacomo some cat food

Licensing
MIT License article on Wikipedia
Please read the LICENSE for details.
View on GitHub
SystemSounds Reference
