Latest 1.0.1
Homepage https://github.com/aaronjsutton/Shades
License Apache License, Version 2.0
Platforms ios 8.0
Authors

Logo
Easily add drop shadows, borders, rounded corners to a UIView.

Build Status
[CocoaPods]()

Installation

CocoaPods

Add the follwing to your Podfile:

pod 'Shades'

Usage

Storyboard

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:

Storyboard

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:

Example

TO-DO:

  • [ ] Support more UIKit types.

Latest podspec

{
    "name": "Shades",
    "version": "1.0.1",
    "summary": "Easily add drop shadows, borders, and round corners to a UIView.",
    "description": "Add drop shadows, rounded corners, and borders to your UIViews progmatically or throughnthe Storyboard editor.",
    "homepage": "https://github.com/aaronjsutton/Shades",
    "license": "Apache License, Version 2.0",
    "authors": {
        "Aaron Sutton": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/aaronjsutton/Shades.git",
        "tag": "1.0.1"
    },
    "source_files": "Shades/",
    "exclude_files": "Classes/Exclude",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This