UIHex is a tool written in jQuery that is used to instantly generate Swift and Objective-C code snippets from a hex color code.
Clone this repository and open index.html in a browser.
A working version of this can be found online at http://uihex.com/.