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 get thumbnail from video URL in Swift 5

Missing system image Android Studio solution

How to customize your date according to Timezone in Swift 5