Skip to content

hk0i/UIView-DropShadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ios UIView+DropShadow

This is an ios category to UIView to allow you to add drop shadows to anything.

Here are some quick usage examples from the sample project:

  [self.shadowLabel addDropShadow:UIColor.redColor];

  [self.shadowButton addDropShadow:UIColor.blackColor
                       withOffset:CGSizeMake(0, 1)
                           radius:0.3f
                          opacity:.4];

  [self.shadowView addDropShadow:UIColor.blackColor
                       withOffset:CGSizeMake(0, 2)
                           radius:2.0f
                          opacity:1];

For more information and explanations, read the original blog post. If you're lucky I may update this later :)

About

Some common code to simplify adding drop shadows to UIViews.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published