updated vars

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-05-23 11:45:04 -05:00
parent 4ba2b4e744
commit 6ad1c0561e

View File

@ -42,21 +42,21 @@ extension InputField {
let surface = inputField.surface
var contentView: UIView
var code3Label = Label().with {
let code3Label = Label().with {
$0.text = "Most credit or debit cards have a 3-digit security code on the back."
$0.isEnabled = true
$0.surface = surface
}
var code4Label = Label().with {
let code4Label = Label().with {
$0.text = "American Express cards have a 4-digit code on the front."
$0.isEnabled = true
$0.surface = surface
}
var code3ImageView = UIImageView().with {
let code3ImageView = UIImageView().with {
$0.image = BundleManager.shared.image(for: "securityCode\(surface == .dark ? "-inverted": "")")
}
var code4ImageView = UIImageView().with {
let code4ImageView = UIImageView().with {
$0.image = BundleManager.shared.image(for: "securityCodeAmex\(surface == .dark ? "-inverted": "")")
}
@ -84,7 +84,6 @@ extension InputField {
}
}
let title: String = inputField.cardType.rawValue
switch inputField.cardType {
case .amex:
contentView = view4()