How to convert HEX RGBA color in swift 4.2

Hello guys, today I wanna share with you a method or extenstion that I use to convert any hex rgba like this #33000000 which is One hash and 8 digit hex. 33 is for Alpa, 00 is R, 00 is G, 00 is B. You can modify the code appropriate what you want. So the code goes likes this.




If you have any question please feel free to ask :D

Popular posts from this blog

How to restart the app with flutter Android and iOS

How to have ConstraintLayout inside ScrollView and ScrollView inside ConstraintLayout Android

Missing system image Android Studio solution