Skip to content

Commit

Permalink
Add Autocapitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-nirali-s committed Dec 16, 2024
1 parent 66e032e commit 4465880
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Splito/UI/Home/Expense/AddExpenseView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ private struct ExpenseDetailRow: View {
}
.tint(primaryColor)
.focused(focusedField, equals: field)
.textInputAutocapitalization(.sentences)
.submitLabel(.next)
.onSubmit {
focusedField.wrappedValue = .amount
Expand Down
1 change: 1 addition & 0 deletions Splito/UI/Home/Expense/Note/AddNoteView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ private struct NoteInputFieldView: View {
.font(.subTitle2())
.foregroundStyle(primaryText)
.tint(primaryColor)
.textInputAutocapitalization(.sentences)
.padding(16)
.overlay {
RoundedRectangle(cornerRadius: 12)
Expand Down
1 change: 1 addition & 0 deletions Splito/UI/Home/Groups/Create Group/CreateGroupView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ private struct AddGroupNameView: View {
.padding(.horizontal, 16)
.padding(.vertical, 12)
.tint(primaryColor)
.textInputAutocapitalization(.sentences)
.overlay {
RoundedRectangle(cornerRadius: 12)
.stroke(outlineColor, lineWidth: 1)
Expand Down
4 changes: 2 additions & 2 deletions Splito/UI/Login/EmailLogin/EmailLoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private struct EmailInputFieldView: View {
.foregroundStyle(primaryText)
.tint(primaryColor)
.autocorrectionDisabled()
.autocapitalization(.none)
.textInputAutocapitalization(.never)
.focused(focusedField, equals: .email)
.submitLabel(.next)
.onSubmit {
Expand Down Expand Up @@ -141,7 +141,7 @@ private struct PasswordInputFieldView: View {
.foregroundStyle(primaryText)
.tint(primaryColor)
.autocorrectionDisabled()
.autocapitalization(.none)
.textInputAutocapitalization(.never)
.submitLabel(.done)
.padding(.vertical, 12)
.padding(.horizontal, 16)
Expand Down

0 comments on commit 4465880

Please sign in to comment.