partial bugfix
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
99db2d3b1c
commit
51b151a73f
@ -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] {
|
func separatorIndices(_ length: Int) -> [Int] {
|
||||||
var indices: [Int] = [4, 8, 12]
|
var indices: [Int] = [4, 8, 12]
|
||||||
switch self {
|
switch self {
|
||||||
@ -135,7 +143,7 @@ extension InputField {
|
|||||||
fileprivate func updateLeftImage(_ inputField: InputField) {
|
fileprivate func updateLeftImage(_ inputField: InputField) {
|
||||||
let imageName = inputField.cardType.imageName(surface: inputField.surface)
|
let imageName = inputField.cardType.imageName(surface: inputField.surface)
|
||||||
creditCardImageView.image = BundleManager.shared.image(for: imageName)
|
creditCardImageView.image = BundleManager.shared.image(for: imageName)
|
||||||
creditCardImageView.accessibilityLabel = inputField.cardType.rawValue
|
creditCardImageView.accessibilityLabel = inputField.cardType.accessibilityLabel
|
||||||
}
|
}
|
||||||
|
|
||||||
override func updateView(_ inputField: InputField) {
|
override func updateView(_ inputField: InputField) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user