songyc macbook 0d058c7734 fix(keging): 진동 패턴 4종 재설계 — 횟수 세기 대신 첫 순간의 질감으로 구분
- 톡(짧게)/톡톡/드르륵/지잉(길게, 0.3s 겹침으로 끊기지 않는 긴 진동) — 사용자 피드백
  '한 번·두 번 방식은 아니고 간격도 길다' 반영, 연타 간격 0.5s로 단축
- 기본값: 수축=지잉(조이고 유지), 이완=톡(탁 풀기) — 첫 진동 즉시 구분
- 워치는 반복 재생 대신 패턴별 단일 시스템 햅틱(.start/.directionUp/.retry/.notification)
  — 워치 연타 뭉개짐·긴 간격 문제 자체를 제거
- 구버전 저장값(once/twice/thrice/heartbeat) 자동 이관, 라벨 3언어 번역·stale 정리
- 검증: Debug·Release·워치 빌드 그린, 세팅 화면 QA, 카탈로그 missing·stale 0

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UPmp29DQHY6Ahfss5SRopT
2026-08-29 20:34:22 +09:00

30 lines
906 B
Swift

//
// WatchHaptics.swift
// KegingWatch Watch App
//
// () 1
// ( )
//
import WatchKit
@MainActor
enum WatchHaptics {
static func play(_ pattern: HapticPattern) {
WKInterfaceDevice.current().play(hapticType(for: pattern))
}
static func playSuccess() {
WKInterfaceDevice.current().play(.success)
}
private static func hapticType(for pattern: HapticPattern) -> WKHapticType {
switch pattern {
case .short: .start //
case .doubleTap: .directionUp //
case .rattle: .retry //
case .long: .notification //
}
}
}