Skip to content

Commit

Permalink
Merge pull request #18 from adevinta/fix-cgcolors
Browse files Browse the repository at this point in the history
[Fix] Added .resolvedColor in UIView.setBorderColor
  • Loading branch information
LouisBorleeAdevinta authored Nov 19, 2024
2 parents 42c8897 + d733d79 commit 1136a40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1136a40

Please sign in to comment.