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

Related tags

Image SwiftColorArt
Overview

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.

You might also like...
An extension to SnapshotTesting which allows you to create HEIC images

🗜 SnapshotTestingHEIC An extension to SnapshotTesting which allows you to create HEIC images. The benefit of using HEIC instead of PNG is that it can

A simple UIImageView extension for using initials as a profile image, written in swift
A simple UIImageView extension for using initials as a profile image, written in swift

InitialsImageView An easy, helpful UIImageView extension that generates letter initials as a placeholder for user profile images, with a randomized ba

An NSFW image detector for Swift built as an extension on UIImage.

Swift_NSFW_Detector An NSFW image detector for Swift built as an extension on UIImage. If you've ever allowed users to share images you are probably w

Siri Shortcuts extension for calculating NN-based image hash.

NNHash Siri Shortcuts extension for calculating NN-based image hash. Based on nhcalc.

An extension that gives UIImageView the ability to focus on faces within an image.
An extension that gives UIImageView the ability to focus on faces within an image.

FaceAware Sometimes the aspect ratios of images we need to work with don't quite fit within the confines of our UIImageViews. In most cases we can use

Async image downloader with Mem&Disk cached as a UIImageView extension

HBWebImage Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation HBWebIm

Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js
Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js

ComplimentaryGradientView Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js ❤️ .all

How to create a circular and rectangular ImageView with similar image?

chapter11CircularAndRectangularImage How to create a circular and rectangular ImageView with similar image? I add two imageView in Main.storyboard I a

Twitter Image Pipeline is a robust and performant image loading and caching framework for iOS clients

Twitter Image Pipeline (a.k.a. TIP) Background The Twitter Image Pipeline is a streamlined framework for fetching and storing images in an application

Comments
  • Update links

    Update links

    Hi,

    After some searching on your blog, I've found the URL you are referencing. Great article! https://www.jangregor.me/blog/learning-on-the-shoulders-of-giants Also you image link redirects to a 404. Can you please update the links?

    Best, Sidney

    opened by funky-monkey 0
An early experimental general-purpose pattern matching engine for Swift.

Declarative String Processing for Swift An early experimental general-purpose pattern matching engine for Swift. See Declarative String Processing Ove

Apple 232 Jan 2, 2023
Make system color defined in UIColor/NSColor available to SwiftUI Color.

SwiftUIColor Make system color defined in UIColor/NSColor available to SwiftUI Color. About In this library, colors are defined in an asset file. Crea

null 2 Oct 24, 2022
An image download extension of the image view written in Swift for iOS, tvOS and macOS.

Moa, an image downloader written in Swift for iOS, tvOS and macOS Moa is an image download library written in Swift. It allows to download and show an

Evgenii Neumerzhitckii 330 Sep 9, 2022
Random image and background color with swift

Random-image-and-background-color Hello, this is my first project. Frankly, I got this idea from the "IOS Academy" page, but: color scale for the back

imhalid 2 Apr 12, 2022
Set of Extensions and Custom control for standard types and classes 🎨

OpencvQueen Set of Extensions and Custom control for standard types and classes. Just like Doraemon’s pocket, has an endless variety of props for us t

Condy 17 Dec 23, 2022
Instant font size adjustment with control – / control +

Plugins manipulating UI (like this one) are not supported by Xcode 8 UPDATE: to avoid conflict with Interface Builder hotkeys are changed to Control -

Sash Zats 271 Jul 30, 2022
The first non-jailbroken iOS (and macOS) application to adjust the screen temperature, brightness, and color!

GoodNight Project name thanks to @Emu4iOS. Based off of Thomas Finch's GammaThingy. GoodNight is an app that allows you to directly access the screen'

Anthony Agatiello 558 Nov 3, 2022
IconsMaker - Create your app icon with SwiftUI and generate PNG images in all needed sizes

IconsMaker - Create your app icon with SwiftUI and generate PNG images in all needed sizes

Jonathan Gander 14 Oct 20, 2022
Globally change the appearance of the application. Light/Dark mode and color.

About I tried to create a project where you can globally change the appearance of the application. Perhaps someone was looking for such a solution. ⭐️

Aleksandr Buiakov 5 Aug 30, 2022
How to create a UIImagePicker demo?

chapter10UIImagePickerDemo How to create a UIImagePicker demo? I add 'Privacy - Camera Usage Description' and 'Privacy - Photo Library Usage Descripti

ahmetbostanciklioglu 0 Jan 8, 2022