Skip to content

A CAGradientLayer that can be attached to the inner edges of UIViews

Notifications You must be signed in to change notification settings

jrtibbetts/Tenebrae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tenebrae

A CAGradientLayer that can be attached to the inner edges of UIViews.

A simple framework and sample application for adding inner shadows to the edges of views. It was prompted by http://stackoverflow.com/questions/37668965.

To use it, just

import Tenebrae

let targetView = ...
let topShadow = EdgeShadowLayer(forView: targetView, edge: .Top)
targetView.layer.addSublayer(topShadow)

Because it's a CAGradientLayer, you can set the usual attributes, such as radius and colors, the usual way, or you can pass them to the initializer. See the class's documentation for the initializer signature.

About

A CAGradientLayer that can be attached to the inner edges of UIViews

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published