• Stars
    star
    138
  • Rank 263,734 (Top 6 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UIView subclass with rounded corners and drop shadow

ShadowView

Screenshot

This is a simple UIView subclass that allows for setting both a corner radius and a drop shadow.

Installation

Clone or download the repository and and manually add the file ShadowView.swift to your project and target.

Usage

The shadow view can be used with storyboards or be created in code. The properties for cornerRadius, shadowOffset, shadowRadius, shadowOpacity and shadowColor can be set via Interface Builder.

Update 2016-08-26

This new version uses a simpler solution proposed by wtmoose in Issue 1.

Contact

Mail: [email protected]

Twitter: @BenBoecker

License

ShadowView is available under the MIT License