Code Generation Tools To Reduce Errors Caused Storyboards And The Asset Manager

Earlier this week I mentioned a tool designed to automatically make sure your code and storyboards stay in sync called StoryboardLint.

Here’s a set of tools from Square designed to solve issues that can come up when using the Xcode storyboards tool and asset manager along with a tool allowing you to load palettes created with the Mac OS X color picker in storyboards called objc-codegenutils.

The three tools included within objc-codegenutils includes:

1. objc-colordump: A tool that allows you to extract a color palette set within the Mac OS X color picker into a source code file with easy access to the colors within that you can use anywhere in your code.

2. objc-assetgen: Takes the JSON metadata created by the asset manager and generates code providing you with the benefits of the asset manager but without the issues that can occur when changing asset names.

3. objc-identifierconstants:  Takes the string identifiers in your storyboards and generates code with compiler-checked constants so you don’t have to worry about any failures at runtime caused by incorrect string literals.

You can find Objc-CodegenUtils on Github here.

You can read more details about the tools over on the Square Engineering blog.

A nice set of tools to prevent issues that can occur when using the storyboard and asset manager tools.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Code Generation Tools To Reduce Errors Caused Storyboards And The Asset Manager

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

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