Capitalize words in transaction and category forms

This commit is contained in:
William Brawner 2021-10-31 21:35:02 -06:00
parent 5f6e5f7b4d
commit f6d50c5af3
2 changed files with 4 additions and 0 deletions

View file

@ -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) {

View file

@ -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)