Skip to main content

media-play-system-sound | ios-app-dev-memo

いずれも MacOS だと動作しない。iPad ならOK

swift
		let sound = "1000"
if let soundID = SystemSoundID(sound) {
// AudioServicesPlaySystemSound(soundID)
// AudioServicesPlayAlertSound(soundID)
AudioServicesPlaySystemSoundWithCompletion(soundID, nil)
}