Swift 4 Upgrade Error: ‘init(colorLiteralRed:green:blue:alpha:)’ is unavailable

I upgraded a project to Swift 4 today and hit a compiler error: ‘init(colorLiteralRed:green:blue:alpha:)’ is unavailable: This initializer is only meant to be used by color literals. The fix is pretty simple: Don’t use that initializer! (thank you, Captain Obvious!) The correct initializer to use for specifying a red, green, blue, and alpha to get […]