This is a simple component to render a gradient view. It allows you to select start collor and end color from attributes inspector.
Add the pod 'hkGraddiant' in your podfile or just copy the GradientView.swift file in your project:
Example:
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'Sample' do pod 'hkGraddiant' end
and run pod install on command line.
Step 1 - Drag and drop a UIView control into your view controller and set the UIView custom class as image below:
- Created by Anderson Santos Gusmão