PinCushion 1.2.0

PinCushion 1.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2019
SPMSupports SPM

Maintained by Lucas Best.



PinCushion

Version License Platform

Example

PinCushion is a lightweight UIView extension intended to clean up NSLayoutConstraint code. PinCushion attempts to use the same vocabulary that Interface Builder visually uses.

For example to add a width constraint to a view, all you need is view.pin(.width, constant:50.0) and your view is now constrained to a width of 50 points.

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

Installation

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

pod 'PinCushion'

Author

Lucas Best, [email protected]

License

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