Check Mobile App
Read now
Start a Project

Color assets in Swift

Save

In Xcode 9 you also create the color assets. This feature will save a lot of time for developers to manage the color.

How to create color assets?

Got to the menu bar click on File->New->File. Here you can assets from resources.

Name that asset file as Color so that you can easily recognize your color assets. then go to your color asset file click on + add a new color asset. Choose your color in form RGB or in hexadecimal form and also give a name for which you are using that color

Using Color Assets in Storyboard 

Using color assets in the storyboard is pretty easier when you tap a color in the interface builder you can see your color name and choose it for UIView, UILabel etc.

Using Color Assets in Code

I hope from this, it will make you more comfortable using a Color asset. Thanks for tuning in once again!

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

Michael Urresta

Michael Urresta

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home