https://github.com/younatics/shader
🌃 Make simple shade view with Shader!
https://github.com/younatics/shader
shader swift
Last synced: 6 months ago
JSON representation
🌃 Make simple shade view with Shader!
- Host: GitHub
- URL: https://github.com/younatics/shader
- Owner: younatics
- License: mit
- Created: 2017-09-05T05:36:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T09:38:44.000Z (about 7 years ago)
- Last Synced: 2025-03-24T06:01:44.915Z (7 months ago)
- Topics: shader, swift
- Language: Swift
- Homepage:
- Size: 38.1 KB
- Stars: 16
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shader
[](http://cocoapods.org/pods/Shader)
[](https://github.com/Carthage/Carthage)
[](https://github.com/younatics/Shader/blob/master/LICENSE)
[](http://cocoapods.org/pods/Shader)
[](https://developer.apple.com/swift/)## Intoduction
#### 🌃 Make simple shade view with Shader!

## Requirements
`Shader` is written in Swift 3. Compatible with iOS 8.0+
## Installation
### Cocoapods
Shader is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'Shader'
```
### Carthage
```
github "younatics/Shader"
```## Usage
4 methods is available
```Swift
// Add multiple view using tuple with cornerRadius
let shaderView = Shader.at(framesAndRadius: [(originView.frame, 50), (originView2.frame, 0)], color: UIColor.black.withAlphaComponent(0.5))// Add common view
let shaderView = Shader.at(frame: originView.frame, color: UIColor.blue.withAlphaComponent(0.3))// Add common view array
let shaderView = Shader.at(frames: [originView.frame, originView2.frame], color: UIColor.black.withAlphaComponent(0.5))// Add common view and cornerRadius
let shaderView = Shader.at(frame: originView.frame, cornerRadius: 50, color: UIColor.black.withAlphaComponent(0.5))self.view.addSubview(shaderView)
```## References
#### Please tell me or make pull request if you use this library in your application :)## Author
[younatics 🇰🇷](https://twitter.com/younatics)## License
Shader is available under the MIT license. See the LICENSE file for more info.