0

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

Arturo
  • 3,254
  • 2
  • 22
  • 61

1 Answers1

6

try this:

import AVFoundation

AudioServicesPlaySystemSound(1026)

where the number 1026 is the SystemSound id.