Latest 1.1.0
Homepage https://github.com/LucasBest/PinCushion
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

Version
License
Platform

Example

PinCushion is a lightweight UIView extension in Swift 4 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.

Requirements

Swift 4.2
iOS 8.0 and above

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.

Latest podspec

{
    "name": "PinCushion",
    "version": "1.1.0",
    "summary": "An Autolayout extension wrapping NSLayoutConstraint for easier constraint logic.",
    "description": "PinCushion is a UIView extension that makes adding layout constraints in code more equivelant to the way you interact with constraints in Interface Builder.",
    "homepage": "https://github.com/LucasBest/PinCushion",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "LucasBest": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LucasBest/PinCushion.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PinCushion/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This