We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8851c53 commit 76238c3Copy full SHA for 76238c3
1 file changed
Sources/Extensions/Widgets/Custom/AppIntents/AppIntentHaptics.swift
@@ -2,9 +2,12 @@ import AudioToolbox
2
import Foundation
3
4
enum AppIntentHaptics {
5
+ // System sound 1520 is the iOS "Peek" sound, providing subtle haptic and audio feedback
6
+ private static let peekSystemSound: SystemSoundID = 1520
7
+
8
static func notify() {
9
// Unfortunately this is the only 'haptics' that work with widgets
10
// ideally in the future this should use CoreHaptics for a better experience
- AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
11
+ AudioServicesPlaySystemSound(peekSystemSound)
12
}
13
0 commit comments