Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Auto-Capitalization in Text Fields of SettingsViewController #248

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions LoopFollow/ViewControllers/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class SettingsViewController: FormViewController {
row.hidden = "$showNS == false"
}.cellSetup { (cell, row) in
cell.textField.autocorrectionType = .no
cell.textField.autocapitalizationType = .none
}.onChange { row in
guard let value = row.value else {
UserDefaultsRepository.url.value = ""
Expand All @@ -104,6 +105,7 @@ class SettingsViewController: FormViewController {
row.hidden = "$showNS == false"
}.cellSetup { (cell, row) in
cell.textField.autocorrectionType = .no
cell.textField.autocapitalizationType = .none
}.onChange { row in
if row.value == nil {
UserDefaultsRepository.token.value = ""
Expand Down Expand Up @@ -144,6 +146,7 @@ class SettingsViewController: FormViewController {
row.hidden = "$showDex == false"
}.cellSetup { (cell, row) in
cell.textField.autocorrectionType = .no
cell.textField.autocapitalizationType = .none
}.onChange { row in
if row.value == nil {
UserDefaultsRepository.shareUserName.value = ""
Expand All @@ -159,6 +162,7 @@ class SettingsViewController: FormViewController {
}.cellSetup { (cell, row) in
cell.textField.autocorrectionType = .no
cell.textField.isSecureTextEntry = true
cell.textField.autocapitalizationType = .none
}.onChange { row in
if row.value == nil {
UserDefaultsRepository.sharePassword.value = ""
Expand Down