Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Easily add drop shadows, borders, and round corners to a UIView.

License

NotificationsYou must be signed in to change notification settings

aaronjsutton/Shades

Repository files navigation

LogoEasily add drop shadows, borders, rounded corners to a UIView.

Build StatusCocoaPods

Installation

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 aUIView toShadesView

You can then customize the shades settings:

Storyboard

Alternatively, you can configure a ShadesView from Swift code directly:

shadeView.cornerRadius=30shadeView.borderWidth=5shadeView.borderColor=UIColor.lightGrayshadeView.shadowColor=UIColor.blackshadeView.shadowOffset=CGSize(width:5, height:5)shadeView.shadowRadius=3shadeView.shadowOpacity=0.8

Would produce:

Example

TO-DO:

  • Support more UIKit types.

[8]ページ先頭

©2009-2025 Movatter.jp