AnthonyMDev / AMEdgeView

A UIView subclass that can be used as a border added to another view on one edge.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AMEdgeView

Version License Platform

AMEdgeView is a UIView subclass that can be used as a border added to another view on one edge.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

AMEdgeView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AMEdgeView"

Usage

view.AM_addEdge(.Bottom) // Adds a black bottom edge with a width of 1.0.

view.AM_addEdge(.Left, width: 2.0, color: UIColor.redColor()) // Adds a red left edge with a width of 2.0.

view.AM_addEdge(.Top, leadingSpace: 5.0) // Adds a top edge with a width 5.0 space to its left.

view.AM_addEdge(.Right, trailingSpace: 5.0) // Adds a right edge with 5.0 space below it.

Author

Anthony Miller, AnthonyMDev@gmail.com

License

AMEdgeView is available under the MIT license. See the LICENSE file for more info.

About

A UIView subclass that can be used as a border added to another view on one edge.

License:MIT License


Languages

Language:Swift 84.5%Language:Ruby 8.9%Language:Objective-C 6.5%