updated border width

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-01-06 14:55:38 -06:00
parent 3e0aae5ab4
commit a6f000198a

View File

@ -8,6 +8,7 @@
import Foundation
import UIKit
import VDS
import VDSFormControlsTokens
public class TextField: UITextField {
public var isNumeric: Bool = false
@ -30,14 +31,14 @@ public class TextField: UITextField {
public override func textRect(forBounds bounds: CGRect) -> CGRect {
layer.borderColor = UIColor.black.cgColor
layer.borderWidth = 1
layer.borderWidth = VDSFormControls.widthBorder
let rect = super.textRect(forBounds: bounds)
return rect.inset(by: textPadding)
}
public override func editingRect(forBounds bounds: CGRect) -> CGRect {
layer.borderColor = UIColor.black.cgColor
layer.borderWidth = 1
layer.borderWidth = VDSFormControls.widthBorder
let rect = super.editingRect(forBounds: bounds)
return rect.inset(by: textPadding)
}