vokal / Cat2Cat

Creates a category on UIImage from Asset Catalogs in order to reduce typos and enable auto-complete with image names.
MIT License
46 stars 11 forks source link

Update Swift for 2.0 #29

Closed designatednerd closed 8 years ago

designatednerd commented 9 years ago

We should look at some of the fun stuff like using protocols and enums to make sure the images aren't optional.

vokal-isaac commented 9 years ago

Whether the images are option is really more a function of how UIImage's methods are declared. My inclination would be to keep the Cat2Cat methods behaving as similarly to the built-in stringly-typed methods as possible, but :shrug:.

designatednerd commented 9 years ago

Right, but there's a fun way you can do this in Swift 2.0 that makes it really easy to set up an extension that takes an enum. I'll see if I can get it up and running. :smile: