ComplimentaryGradientView is an open source library from George Kye for creating gradient views based on the colors within a supplied image.
Gradients created with ComplimentaryGradientView are great for use as image backgrounds. There are a number of different gradient types, and you can control the direction of the gradient.
Here’s an image from the readme showing an image and it’s created gradient background:
You can find ComplimentaryGradientView on Github here.
A nice component for automatically creating backgrounds.
Original article: ComplimentaryGradientView – Swift Library For Creating Gradient Backgrounds Based On An Image
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools