Skip to content

Commit

Permalink
fix: disable autocorrect and auto capitalization for token details te…
Browse files Browse the repository at this point in the history
…xt fields
  • Loading branch information
joeldavidw committed Jun 15, 2024
1 parent 38d6860 commit e5a7ecd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Chronos/App/Tabs/Tokens/AddToken/AddManualTokenView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,21 @@ struct AddManualTokenView: View {
Section(header: Text("Information")) {
LabeledContent {
TextField("Issuer", text: $issuer)
.disableAutocorrection(true)
} label: {
Text("Issuer")
}
LabeledContent("Account") {
TextField("Account", text: $account)
.disableAutocorrection(true)
.autocapitalization(/*@START_MENU_TOKEN@*/.none/*@END_MENU_TOKEN@*/)
}
LabeledContent("Secret") {
Group {
if showSecret {
TextField("Secret", text: $secret)
.disableAutocorrection(true)
.autocapitalization(/*@START_MENU_TOKEN@*/.none/*@END_MENU_TOKEN@*/)
} else {
SecureField("Secret", text: $secret)
}
Expand Down
5 changes: 5 additions & 0 deletions Chronos/App/Tabs/Tokens/Row/UpdateTokenView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,21 @@ struct UpdateTokenView: View {
Section(header: Text("Information")) {
LabeledContent {
TextField("Issuer", text: $issuer)
.disableAutocorrection(true)
} label: {
Text("Issuer")
}
LabeledContent("Account") {
TextField("Account", text: $account)
.disableAutocorrection(true)
.autocapitalization(/*@START_MENU_TOKEN@*/.none/*@END_MENU_TOKEN@*/)
}
LabeledContent("Secret") {
Group {
if showSecret {
TextField("Secret", text: $secret)
.disableAutocorrection(true)
.autocapitalization(/*@START_MENU_TOKEN@*/.none/*@END_MENU_TOKEN@*/)
} else {
SecureField("Secret", text: $secret)
.disabled(true)
Expand Down

0 comments on commit e5a7ecd

Please sign in to comment.