From 8681988731f56eadae0570e5a1a309f61839a82b Mon Sep 17 00:00:00 2001 From: Snesnopic Date: Fri, 24 May 2024 16:16:44 +0200 Subject: [PATCH] Removed toolbar item --- Morser/Views/EncodeView.swift | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Morser/Views/EncodeView.swift b/Morser/Views/EncodeView.swift index b3b3483..f60ca78 100644 --- a/Morser/Views/EncodeView.swift +++ b/Morser/Views/EncodeView.swift @@ -23,7 +23,6 @@ struct EncodeView: View { vibrationEngine.readMorseCode(morseCode: enteredText.morseCode()) } } - var body: some View { NavigationView { VStack { @@ -35,19 +34,10 @@ struct EncodeView: View { .onSubmit { tryReading() } - .toolbar { - ToolbarItem(placement: .keyboard) { - Button("Close") { - textFieldIsFocused = false - } - .opacity(enteredText.isEmpty ? 0.0 : 1.0) - } - } .textInputAutocapitalization(.never) .textFieldStyle(.roundedBorder) .disableAutocorrection(true) .padding(.leading) - Button { if isRecording { stopTranscribing() @@ -102,12 +92,12 @@ struct EncodeView: View { .font(.title3) } } - + Spacer() .onTapGesture { textFieldIsFocused = false } - + Button { if !vibrationEngine.isVibrating() { print("Size: \(size)") @@ -157,7 +147,7 @@ struct EncodeView: View { .navigationTitle("Encode") .ignoresSafeArea(.keyboard) } - + } private func startTranscribing() { speechRecognizer.resetTranscript()