Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Remove textContentType annotations (Addresses #3159) #3267

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ class AntigenTestProfileInputCell: UITableViewCell, ReuseIdentifierProviding {
firstNameTextField = textField()
firstNameTextField.placeholder = AppStrings.AntigenProfile.Create.firstNameTextFieldPlaceholder
firstNameTextField.accessibilityIdentifier = AccessibilityIdentifiers.AntigenProfile.Create.firstNameTextField
firstNameTextField.textContentType = .givenName
contentView.addSubview(firstNameTextField)
textFields.append(firstNameTextField)

lastNameTextField = textField()
lastNameTextField.placeholder = AppStrings.AntigenProfile.Create.lastNameTextFieldPlaceholder
lastNameTextField.accessibilityIdentifier = AccessibilityIdentifiers.AntigenProfile.Create.lastNameTextField
lastNameTextField.textContentType = .familyName
contentView.addSubview(lastNameTextField)
textFields.append(lastNameTextField)

Expand All @@ -43,38 +41,33 @@ class AntigenTestProfileInputCell: UITableViewCell, ReuseIdentifierProviding {
addressLineTextField = textField()
addressLineTextField.placeholder = AppStrings.AntigenProfile.Create.streetTextFieldPlaceholder
addressLineTextField.accessibilityIdentifier = AccessibilityIdentifiers.AntigenProfile.Create.streetTextField
addressLineTextField.textContentType = .streetAddressLine1
contentView.addSubview(addressLineTextField)
textFields.append(addressLineTextField)

postalCodeTextField = textField()
postalCodeTextField.placeholder = AppStrings.AntigenProfile.Create.postalCodeTextFieldPlaceholder
postalCodeTextField.accessibilityIdentifier = AccessibilityIdentifiers.AntigenProfile.Create.postalCodeTextField
postalCodeTextField.keyboardType = .asciiCapableNumberPad
postalCodeTextField.textContentType = .postalCode
contentView.addSubview(postalCodeTextField)
textFields.append(postalCodeTextField)

cityTextField = textField()
cityTextField.placeholder = AppStrings.AntigenProfile.Create.cityTextFieldPlaceholder
cityTextField.accessibilityIdentifier = AccessibilityIdentifiers.AntigenProfile.Create.cityTextField
cityTextField.textContentType = .addressCity
contentView.addSubview(cityTextField)
textFields.append(cityTextField)

phoneNumberTextField = textField()
phoneNumberTextField.placeholder = AppStrings.AntigenProfile.Create.phoneNumberTextFieldPlaceholder
phoneNumberTextField.accessibilityIdentifier = AccessibilityIdentifiers.AntigenProfile.Create.phoneNumberTextField
phoneNumberTextField.keyboardType = .phonePad
phoneNumberTextField.textContentType = .telephoneNumber
contentView.addSubview(phoneNumberTextField)
textFields.append(phoneNumberTextField)

emailAddressTextField = textField()
emailAddressTextField.placeholder = AppStrings.AntigenProfile.Create.emailAddressTextFieldPlaceholder
emailAddressTextField.accessibilityIdentifier = AccessibilityIdentifiers.AntigenProfile.Create.emailAddressTextField
emailAddressTextField.keyboardType = .emailAddress
emailAddressTextField.textContentType = .emailAddress
contentView.addSubview(emailAddressTextField)
textFields.append(emailAddressTextField)

Expand Down