General
I\'m developing a third party keyboard and am currently trying to mimic the new keyboard clicks that Apple introduced in iOS 10b4.
Implemented in swift using an enum (extend with your own other system sound id's):
import AudioToolbox
enum SystemSound: UInt32 {
case pressClick = 1123
case pressDelete = 1155
case pressModifier = 1156
func play() {
AudioServicesPlaySystemSound(self.rawValue)
}
}
and use like this:
@IBAction func pressedDigit(sender : UIButton) {
SystemSound.pressClick.play()
}