shoaib-akhtar/GradientView


Use gradient view easily from interface builder or code.

License: MIT

Language: Swift


GradientView

Use gradient easily from interface builder or code.

CocoaPods

Installation

Use CocoaPods.

pod 'GradientViewInspectable'

Usage

In code

     let view = GradientView(frame: CGRect(x: 0, y: 50, width: 50))
     view.startColor = .blue   
     view.startColor = viewColor.topColor
     view.endColor = viewColor.bottomColor

In Interface builder

Change view class to GradientView and you are good to go.

License

GradientViewInspectable is under MIT. See LICENSE file for more info.

Project Statistics

Sourcerank 3
Repository Size 1.51 MB
Stars 3
Forks 0
Watchers 2
Open issues 0
Dependencies 0
Contributors 1
Tags 2
Created
Last updated
Last pushed

Top Contributors See all

Shoaib Akhtar

Packages Referencing this Repo

GradientViewInspectable
Use gradient view easily from interface builder or code.
Latest release 1.1 - Updated - 3 stars

Recent Tags See all

1.1 January 13, 2020
1.0 January 13, 2020

Something wrong with this page? Make a suggestion

Last synced: 2020-01-15 00:16:39 UTC

Login to resync this repository