updated border width
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
3e0aae5ab4
commit
a6f000198a
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user