Haptic feedback for force touch?

Hi there.


There currently isnt a public API for providing the haptic feedback for force touch. Would an app be rejected or frowned upon for using AudioServices such as:

AudioServicesPlaySystemSound(1519) and AudioServicesPlaySystemSound(1520) as feedback for force touch?


Thanks.

Replies

This is not a Swift question. Please ask this in the Media/AVFoundation (Audio) forum.

Would an app be rejected or frowned upon …

This is most definitely not supported. For a fixed

SystemSoundID
value to be considered API, it must have a symbolic constant in the headers. Passing in other fixed values is not OK.

Also, see this thread.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"