rename local hex var to hexValue to make it distinct from property name

This commit is contained in:
Satindar Dhillon 2022-04-01 09:21:03 -07:00
parent 90da2e2988
commit 68fe58d9f3

View file

@ -38,8 +38,8 @@ public extension Color {
}
var hex: String? {
if let hex = toHex() {
return "#\(hex)"
if let hexValue = toHex() {
return "#\(hexValue)"
} else {
return nil
}