From 9cb21fae1266bffebf08ca62c1511626b9d1c75e Mon Sep 17 00:00:00 2001 From: Oliver Wiese <oliver.wiese@fu-berlin.de> Date: Sat, 10 Apr 2021 11:50:31 +0200 Subject: [PATCH] clean code --- enzevalos_iphone/AuthenticationView.swift | 11 +++++------ enzevalos_iphone/SwiftUI/Compose/ComposeView.swift | 1 - .../Read/Tabbed Views/SecurityBriefingView.swift | 12 +----------- .../SwiftUI/Read/Tabbed Views/SenderViewMain.swift | 6 +----- 4 files changed, 7 insertions(+), 23 deletions(-) diff --git a/enzevalos_iphone/AuthenticationView.swift b/enzevalos_iphone/AuthenticationView.swift index ca9a99d3..69807630 100644 --- a/enzevalos_iphone/AuthenticationView.swift +++ b/enzevalos_iphone/AuthenticationView.swift @@ -211,12 +211,11 @@ struct LoginAdvancedSection: View{ ForEach(0..<encryptionOptions.count) { i in Text(self.encryptionOptions[i]).tag(i) .onTapGesture { - print("Tap!") - if !s { - self.imapEncryption = i - } else { - self.smtpEncryption = i - } + if !s { + self.imapEncryption = i + } else { + self.smtpEncryption = i + } } } } diff --git a/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift b/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift index 937ceb3f..ff007cea 100644 --- a/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift +++ b/enzevalos_iphone/SwiftUI/Compose/ComposeView.swift @@ -130,7 +130,6 @@ struct RecipientField: View { // and Bcc fields getting collapsed again despite the // first recipient clearly getting rendered as a blue // capsule in the ForEach loop above. 🤔🤔🤔 - print(model.selectedContacts.count) } .frame(width: 200) // TODO: Stretch dynamically over available horizontal space .autocapitalization(.none) // .frame(maxWidth: .infinity) somehow doesn't work diff --git a/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SecurityBriefingView.swift b/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SecurityBriefingView.swift index 1ea78852..003dd869 100644 --- a/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SecurityBriefingView.swift +++ b/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SecurityBriefingView.swift @@ -140,12 +140,7 @@ struct SecurityBriefingView<M: DisplayMail>: View { } func choseAction (action: ButtonAction) { - /* TODO guard let coord = AppDelegate.getAppDelegate().readViewCoordinator else { - print("No coordinator!") - return - } - coord.makeAction(action: action) - */} + } } struct WarningView: View { @@ -205,11 +200,6 @@ struct WarningView: View { } func choseAction (action: ButtonAction) { - /* TODO guard let coord = AppDelegate.getAppDelegate().readViewCoordinator else { - print("No coordinator!") - return - } - coord.makeAction(action: action) */ } } diff --git a/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewMain.swift b/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewMain.swift index 5426af55..2549d1d0 100644 --- a/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewMain.swift +++ b/enzevalos_iphone/SwiftUI/Read/Tabbed Views/SenderViewMain.swift @@ -156,11 +156,7 @@ struct SenderViewMain <M: DisplayMail>: View { } private func goToContact(contact: M.C) { - /* guard let con = contact.keyRecord else { - print("No record...") - return - } - AppDelegate.getAppDelegate().readViewCoordinator?.pushContactView(contact: con) */ + // Tbd... } } -- GitLab