Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 1.17 KB

README.md

File metadata and controls

21 lines (12 loc) · 1.17 KB

SwiftColorArt

SwiftColorArt is a demo application that includes Swift files with all classes and extension necessary to create a font color schema matching to an image (similiar to what iTunes does).

This work is inspired by a lot of previous work from other people. It is also my first Swift project. You can read the whole story here

Usage is pretty simple and always yields a result (fallback colors are included)

For now please use the convinience init method until the class is stable.

var swiftColorArt:SwiftColorArt = SwiftColorArt(inputImage: image)
  
self.view.backgroundColor = swiftColorArt.backgroundColor!
  
self.primaryColorLabel.textColor    = swiftColorArt.primaryColor!
self.secondaryColorLabel.textColor  = swiftColorArt.secondaryColor!
self.detailColorLabel.textColor     = swiftColorArt.detailColor!

Screenshot

Please note that this is a work in progress performance and memory footprint need major improments and additional features will also be implemented in the future. Feel free to post issues or create pull requests.