Hexcolor To UIColor in Swift

Hexcolor is commonly used id web development. This function will convert your Hexcolor to UIColor so you can use it in your app.

Use it like this:

It’s also can converted to CGColor:

Have fun with color 🙂


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.