allowed color param

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-12-15 11:46:25 -06:00
parent db9c86b43f
commit 627dc99c42

View File

@ -119,9 +119,9 @@ extension UIView {
extension UIView { extension UIView {
public func debugBorder(show shouldShow: Bool = true) { public func debugBorder(show shouldShow: Bool = true, color: UIColor = .red) {
if shouldShow { if shouldShow {
layer.borderColor = UIColor.red.cgColor layer.borderColor = color.cgColor
layer.borderWidth = 1 layer.borderWidth = 1
} else { } else {
layer.borderColor = UIColor.clear.cgColor layer.borderColor = UIColor.clear.cgColor