Play reminder sound SwiftUI
问题 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 回答1: try this: import AVFoundation AudioServicesPlaySystemSound(1026) where the number 1026 is the SystemSound id. 来源: https://stackoverflow.com/questions/61310578/play-reminder-sound-swiftui