diff --git a/VDS/Components/TextFields/InputField/FieldTypes/SecurityCode.swift b/VDS/Components/TextFields/InputField/FieldTypes/SecurityCode.swift index cf60eb9a..d651058c 100644 --- a/VDS/Components/TextFields/InputField/FieldTypes/SecurityCode.swift +++ b/VDS/Components/TextFields/InputField/FieldTypes/SecurityCode.swift @@ -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()