Gave usage a whole line as it often contains long texts (TODO: make it multiline, e.g. with UITextView)

This commit is contained in:
dankito 2020-09-07 15:00:10 +02:00
parent a7d56603e5
commit 0baa74484b
3 changed files with 11 additions and 2 deletions

View File

@ -99,6 +99,7 @@
"No BIC found for bank code %@" = "No BIC found for bank code %@"; "No BIC found for bank code %@" = "No BIC found for bank code %@";
"Amount" = "Amount"; "Amount" = "Amount";
"Usage" = "Usage"; "Usage" = "Usage";
"Enter usage" = "Optionally enter usage";
"Instant Payment" = "Instant Payment"; "Instant Payment" = "Instant Payment";
"may with costs" = "may with costs"; "may with costs" = "may with costs";

View File

@ -99,6 +99,7 @@
"No BIC found for bank code %@" = "Keine BIC gefunden für BLZ %@"; "No BIC found for bank code %@" = "Keine BIC gefunden für BLZ %@";
"Amount" = "Betrag"; "Amount" = "Betrag";
"Usage" = "Verwendungszweck"; "Usage" = "Verwendungszweck";
"Enter usage" = "Optional einen Verwendungszweck eingeben";
"Instant Payment" = "Echtzeitüberweisung"; "Instant Payment" = "Echtzeitüberweisung";
"may with costs" = "evtl. kostenpflichtig"; "may with costs" = "evtl. kostenpflichtig";
@ -129,7 +130,7 @@ Ob eine Bank Gebühren für Echtzeitüberweisungen erhebt, kann Bankmeister leid
"Could not change TAN medium to %@. Error: %@." = "TAN medium konnte nicht zu '%@' geändert werden.\n\nFehlermeldung Ihrer Bank:\n\n%@."; "Could not change TAN medium to %@. Error: %@." = "TAN medium konnte nicht zu '%@' geändert werden.\n\nFehlermeldung Ihrer Bank:\n\n%@.";
/* SettingsDialog */ /* SettingsTab */
"Secure app data" = "Appdaten schützen"; "Secure app data" = "Appdaten schützen";

View File

@ -152,8 +152,15 @@ struct TransferMoneyDialog: View {
amountValidationResult.map { validationError in amountValidationResult.map { validationError in
ValidationLabel(validationError) ValidationLabel(validationError)
} }
}
Section {
VStack {
Text("Usage")
.alignHorizontally(.leading)
LabelledUIKitTextField(label: "Usage", text: $usage, actionOnReturnKeyPress: handleReturnKeyPress, textChanged: validateUsage) UIKitTextField("Enter usage", text: $usage, actionOnReturnKeyPress: handleReturnKeyPress, textChanged: validateUsage)
}
usageValidationResult.map { validationError in usageValidationResult.map { validationError in
ValidationLabel(validationError) ValidationLabel(validationError)