We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0d4e57 + 1f46bba commit 092a227Copy full SHA for 092a227
1 file changed
ColorKit/ColorKit/Hex.swift
@@ -27,7 +27,7 @@ extension UIColor {
27
case 6: // 0xRRGGBB
28
(a, r, g, b) = (255, hexValue >> 16, hexValue >> 8 & 0xFF, hexValue & 0xFF)
29
case 8: // 0xRRGGBBAA
30
- (a, r, g, b) = (hexValue >> 24, hexValue >> 16 & 0xFF, hexValue >> 8 & 0xFF, hexValue & 0xFF)
+ (r, g, b, a) = (hexValue >> 24, hexValue >> 16 & 0xFF, hexValue >> 8 & 0xFF, hexValue & 0xFF)
31
default:
32
(a, r, g, b) = (255, 0, 0, 0)
33
}
0 commit comments