I understand I can play a sound from my own library, like: How to play a sound using Swift?
But how can I use the already existing default Reminder Alerts sounds that iPhone has? Just to put it into context in a simple button press?
Thanks
I understand I can play a sound from my own library, like: How to play a sound using Swift?
But how can I use the already existing default Reminder Alerts sounds that iPhone has? Just to put it into context in a simple button press?
Thanks
try this:
import AVFoundation
AudioServicesPlaySystemSound(1026)
where the number 1026 is the SystemSound id.