diff --git a/Sources/Core/UIKit/Extension/UIView/UIView+LayerExtension.swift b/Sources/Core/UIKit/Extension/UIView/UIView+LayerExtension.swift index f021826..25ebf63 100644 --- a/Sources/Core/UIKit/Extension/UIView/UIView+LayerExtension.swift +++ b/Sources/Core/UIKit/Extension/UIView/UIView+LayerExtension.swift @@ -13,7 +13,7 @@ import SparkTheming /// CGColors need to be refreshed on trait changes func setBorderColor(from colorToken: any ColorToken) { - self.layer.borderColor = colorToken.uiColor.cgColor + self.layer.borderColor = colorToken.uiColor.resolvedColor(with: self.traitCollection).cgColor } func setBorderWidth(_ borderWidth: CGFloat) {