Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 1.36 KB

README.md

File metadata and controls

45 lines (25 loc) · 1.36 KB

#SwiftyGradient

SwiftyGradient

SwiftyGradient makes really easy to use gradient in your Xcode Project. You can use the Interface Builder or just Code. SwiftyGradient is written in Swift.

Usage Inferface Builder

Just drag SwiftyGradient.swift to your project.

Usage in code

let myView = SwiftyGradient(frame: CGRect(x: 100, y: 100, width: 100, height: 100))
myView.startColor = UIColor(red:0.15, green:0.67, blue:0.42, alpha:1)
myView.endColor = UIColor(red:0.82, green:0.31, blue:0.15, alpha:1)
self.view.addSubview(myView)

Requirements

Xcode 6.0 Swift 2.0

Author

Bilal Karim Reffas

Twitter: @reffas_bilal

License

The MIT License (MIT) Copyright (c) 2015 Bilal Karim Reffas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.