This is a simple UIView
subclass that allows for setting both a corner radius and a drop shadow.
Clone or download the repository and and manually add the file ShadowView.swift
to your project and target.
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.
This new version uses a simpler solution proposed by wtmoose in Issue 1.
Mail: [email protected]
Twitter: @BenBoecker
ShadowView is available under the MIT License