// // Haptics.swift // Keging // // 진동 패턴 재생 (iOS) — 시스템 바이브를 패턴 오프셋대로 연타. // AudioServices 바이브는 무음 스위치와 무관하고, 오디오 세션이 살아 있으면 백그라운드에서도 울린다. // import AudioToolbox @MainActor enum Haptics { static func play(_ pattern: HapticPattern) { for offset in pattern.beatOffsets { DispatchQueue.main.asyncAfter(deadline: .now() + offset) { AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) } } } }