partial bugfix

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-06-28 17:27:37 -05:00
parent 99db2d3b1c
commit 51b151a73f

View File

@ -51,6 +51,14 @@ extension InputField {
}
}
public var accessibilityLabel: String {
switch self {
case .generic, .placeholder: return "credit card"
default: return rawValue
}
}
func separatorIndices(_ length: Int) -> [Int] {
var indices: [Int] = [4, 8, 12]
switch self {
@ -135,7 +143,7 @@ extension InputField {
fileprivate func updateLeftImage(_ inputField: InputField) {
let imageName = inputField.cardType.imageName(surface: inputField.surface)
creditCardImageView.image = BundleManager.shared.image(for: imageName)
creditCardImageView.accessibilityLabel = inputField.cardType.rawValue
creditCardImageView.accessibilityLabel = inputField.cardType.accessibilityLabel
}
override func updateView(_ inputField: InputField) {