• Stars
    star
    263
  • Rank 155,049 (Top 4 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.