Get Updates By E-mail 

Article Written By:
Johann Dowa

SwiftColorGen – An Open Source Tool For Easier Color Management In Storyboards And In Swift

  •  
  •  
  •  
  •  
  •  

SwiftColorGen is an open source tool from Fernando Del Rio that simplifies usage of colors in interface builder.

SwiftColorGen allows you to save time by automatically updating colors within interface builder avoiding the need for you to manually go through and change colors if you need to. UIColor extensions are also created allowing access to these colors programmatically if needed.

As the readme states:

SwiftColorGen reads all storyboard files to find common colors, it creates them in a .xcassets folder (without any duplications) and refer them back in the storyboard. Then, it creates an UIColor extension allowing to access the same colors programmatically. It automatically puts a name to the colors found. The name will be the closest webcolor name, measuring the color distance between them. But, the user still can rename the colors and it will keep the storyboards updated.

The tool is demonstrated in this video:

You can find SwiftColorGen on Github here.

A handy tool for managing colors.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments