UIImage Categories in swift is the swift version of Trevor Harmon's category methods for cropping and resizing UIImage objects in iOS. Read more on his 2009 blog post on the subject: http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/
This is the swift version of Trevor category with some modification and extra feature.