yousifa / hkGraddiant

Gradient View component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hkGraddiant - Gradient View Component

This is a simple component to render a gradient view. It allows you to select start collor and end color from attributes inspector.

How to setup it

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.

How to use it


Step 1 - Drag and drop a UIView control into your view controller and set the UIView custom class as image below:

Image 01


Step 2 - Go to Xcode's attributes inspector and set your parameters as showed in the image below:

Image 02


Step 3 - Enjoy it.

Image 03

  • Created by Anderson Santos Gusmão

About

Gradient View component

License:MIT License


Languages

Language:Swift 60.0%Language:Ruby 22.3%Language:Objective-C 17.7%