EchoLiao / Shadow

A simple object for adding/removing shadows from your CALayers or UIViews.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shadow

A simple object for adding/removing shadows from your CALayers or UIViews.
You don't need to define or edit all shadow properties line by line anymore.

Install

CocoaPods

use_frameworks!
pod 'Shadow'

Usage

// Create default shadow.
let shadow = Shadow()
// Add shadow
view.applyShadow(shadow: shadow)
// Remove shadow
view.applyShadow(shadow: nil)

About

A simple object for adding/removing shadows from your CALayers or UIViews.

License:MIT License


Languages

Language:Swift 52.3%Language:Ruby 47.7%