Easily add drop shadows, borders, rounded corners to a UIView.
Add the follwing to your Podfile:
pod 'Shades'
You can add borders, shadows, and corners via the Xcode Storyboard Editor.
Simply set the custom class of a UIView
to ShadesView
You can then customize the shades settings:
Alternatively, you can configure a ShadesView from Swift code directly:
shadeView.cornerRadius = 30
shadeView.borderWidth = 5
shadeView.borderColor = UIColor.lightGray
shadeView.shadowColor = UIColor.black
shadeView.shadowOffset = CGSize(width: 5, height: 5)
shadeView.shadowRadius = 3
shadeView.shadowOpacity = 0.8
Would produce:
- Support more UIKit types.