allowed color param
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
db9c86b43f
commit
627dc99c42
@ -119,9 +119,9 @@ extension UIView {
|
||||
|
||||
|
||||
extension UIView {
|
||||
public func debugBorder(show shouldShow: Bool = true) {
|
||||
public func debugBorder(show shouldShow: Bool = true, color: UIColor = .red) {
|
||||
if shouldShow {
|
||||
layer.borderColor = UIColor.red.cgColor
|
||||
layer.borderColor = color.cgColor
|
||||
layer.borderWidth = 1
|
||||
} else {
|
||||
layer.borderColor = UIColor.clear.cgColor
|
||||
|
||||
Loading…
Reference in New Issue
Block a user