From 37118340c6d3dd639f0f9238b8753c520be89a9d Mon Sep 17 00:00:00 2001 From: Snesnopic Date: Sun, 26 May 2024 19:26:24 +0200 Subject: [PATCH] Now tries to beep together with the phone --- MorserWatch Watch App/Views/QuickTranslateView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MorserWatch Watch App/Views/QuickTranslateView.swift b/MorserWatch Watch App/Views/QuickTranslateView.swift index 84e41df..e21ce30 100644 --- a/MorserWatch Watch App/Views/QuickTranslateView.swift +++ b/MorserWatch Watch App/Views/QuickTranslateView.swift @@ -20,12 +20,12 @@ struct QuickTranslateView: View { Text(sentence.sentence!) .onTapGesture { if !vibrationEngine.isVibrating() { + WatchCommunicationManager.shared.sendVibrationRequest(sentence.sentence!) vibrationEngine.readMorseCode(morseCode: sentence.sentence!.morseCode()) } else if vibrationEngine.morseCodeString == sentence.sentence!.morseCode() { vibrationEngine.stopReading() } } - } .if(vibrationEngine.isVibrating() && vibrationEngine.morseCodeString == sentence.sentence!.morseCode()) { view in view.listRowBackground(Color.blue) }