From a6f000198aeff1551652dab93c4df8cf5791bca7 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 6 Jan 2023 14:55:38 -0600 Subject: [PATCH] updated border width Signed-off-by: Matt Bruce --- VDSSample/Classes/TextField.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VDSSample/Classes/TextField.swift b/VDSSample/Classes/TextField.swift index 75c077b..34f7ed7 100644 --- a/VDSSample/Classes/TextField.swift +++ b/VDSSample/Classes/TextField.swift @@ -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) }