mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Fix upgrade path for custom colors
This commit is contained in:
parent
3d0b913a34
commit
6c22fc9383
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ extension Color: RawRepresentable {
|
|||
let green = Double((rawValue & 0x00FF00) >> 8) / 0xFF
|
||||
let blue = Double(rawValue & 0x0000FF) / 0xFF
|
||||
let opacity = Double((rawValue & 0xFF000000) >> 24) / 0xFF
|
||||
self = Color(red: red, green: green, blue: blue, opacity: opacity)
|
||||
self = Color(red: red, green: green, blue: blue, opacity: opacity == 0 ? 1 : 0)
|
||||
}
|
||||
|
||||
public var rawValue: Int {
|
||||
|
|
Loading…
Reference in a new issue