Swift converting on Swift a color RGBa to object UIColor


Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/batteur/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Here is a small function that lets you convert a hexadecimal color code with or without alpha layer. They allow me to convert of object UIColor from color style of a KML file

Tags :