From 627dc99c426537dd9863d03f52bd064ed8d341a2 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 15 Dec 2022 11:46:25 -0600 Subject: [PATCH] allowed color param Signed-off-by: Matt Bruce --- VDS/Extensions/UIView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Extensions/UIView.swift b/VDS/Extensions/UIView.swift index eb041400..6db07dd2 100644 --- a/VDS/Extensions/UIView.swift +++ b/VDS/Extensions/UIView.swift @@ -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