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 Foundation
|
||||||
import UIKit
|
import UIKit
|
||||||
import VDS
|
import VDS
|
||||||
|
import VDSFormControlsTokens
|
||||||
|
|
||||||
public class TextField: UITextField {
|
public class TextField: UITextField {
|
||||||
public var isNumeric: Bool = false
|
public var isNumeric: Bool = false
|
||||||
@ -30,14 +31,14 @@ public class TextField: UITextField {
|
|||||||
|
|
||||||
public override func textRect(forBounds bounds: CGRect) -> CGRect {
|
public override func textRect(forBounds bounds: CGRect) -> CGRect {
|
||||||
layer.borderColor = UIColor.black.cgColor
|
layer.borderColor = UIColor.black.cgColor
|
||||||
layer.borderWidth = 1
|
layer.borderWidth = VDSFormControls.widthBorder
|
||||||
let rect = super.textRect(forBounds: bounds)
|
let rect = super.textRect(forBounds: bounds)
|
||||||
return rect.inset(by: textPadding)
|
return rect.inset(by: textPadding)
|
||||||
}
|
}
|
||||||
|
|
||||||
public override func editingRect(forBounds bounds: CGRect) -> CGRect {
|
public override func editingRect(forBounds bounds: CGRect) -> CGRect {
|
||||||
layer.borderColor = UIColor.black.cgColor
|
layer.borderColor = UIColor.black.cgColor
|
||||||
layer.borderWidth = 1
|
layer.borderWidth = VDSFormControls.widthBorder
|
||||||
let rect = super.editingRect(forBounds: bounds)
|
let rect = super.editingRect(forBounds: bounds)
|
||||||
return rect.inset(by: textPadding)
|
return rect.inset(by: textPadding)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user