Commit 9cb21fae authored by Oliver Wiese's avatar Oliver Wiese
Browse files

clean code

parent 78c38629
......@@ -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
}
}
}
}
......
......@@ -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
......
......@@ -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) */
}
}
......
......@@ -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...
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment