Create complementary gradients generated from dominant and prominent colors in supplied image. Inspired by Grade.js ❤️
let gradientView = ComplimentaryGradientView(frame: CGRect(x: 0, y: 0, width: 300, height: 300))
//Colors for gradient are derived from the provided image
gradientView.image = UIImage(named: "myImg")
//Default = .backgroundPrimary (See GradientType enum for all possible values)
gradientView.gradientTpye = .backgroundPrimary
//Defaut = Top. Possible values = Top, Left, Right, Bottom
gradientView.gradientStartPoint = .Left
optional func complimentaryGradientView(didSetGradient gradientView: ComplimentaryGradientView, gradientSet: Bool)