Capitalize words in transaction and category forms
This commit is contained in:
parent
5f6e5f7b4d
commit
f6d50c5af3
2 changed files with 4 additions and 0 deletions
|
@ -30,7 +30,9 @@ struct CategoryFormSheet: View {
|
|||
default:
|
||||
return AnyView(Form {
|
||||
TextField("prompt_name", text: self.$title)
|
||||
.textInputAutocapitalization(.words)
|
||||
TextField("prompt_description", text: self.$description)
|
||||
.textInputAutocapitalization(.sentences )
|
||||
TextField("prompt_amount", text: self.$amount)
|
||||
.keyboardType(.decimalPad)
|
||||
Picker("prompt_type", selection: self.$type) {
|
||||
|
|
|
@ -22,7 +22,9 @@ struct EditTransactionForm: View {
|
|||
var body: some View {
|
||||
Form {
|
||||
TextField(LocalizedStringKey("prompt_name"), text: self.$title)
|
||||
.textInputAutocapitalization(.words)
|
||||
TextField(LocalizedStringKey("prompt_description"), text: self.$description)
|
||||
.textInputAutocapitalization(.sentences)
|
||||
DatePicker(selection: self.$date, label: { Text(LocalizedStringKey("prompt_date")) })
|
||||
TextField(LocalizedStringKey("prompt_amount"), text: self.$amount)
|
||||
.keyboardType(.decimalPad)
|
||||
|
|
Loading…
Reference in a new issue