Skip to content

Commit 76238c3

Browse files
authored
Update AppIntents to use system sound 1520 (Peek) (home-assistant#4354)
1 parent 8851c53 commit 76238c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Sources/Extensions/Widgets/Custom/AppIntents/AppIntentHaptics.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ import AudioToolbox
22
import Foundation
33

44
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+
58
static func notify() {
69
// Unfortunately this is the only 'haptics' that work with widgets
710
// ideally in the future this should use CoreHaptics for a better experience
8-
AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
11+
AudioServicesPlaySystemSound(peekSystemSound)
912
}
1013
}

0 commit comments

Comments
 (0)