Latest 1.2.7
Homepage https://github.com/vysotskiyserhiy/Constraints
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

Version
License
Platform

Example

// pinning and adding subviews

backgroundView.constraint(on: view)
    .pin()
.activate()

blueRect.constraint(on: view)
    .height(c: 40)
    .safePin(.left, .bottom)
    .pin(.right, r: .lessThanOrEqual, c: 20)
    .pin(.right, r: .greaterThanOrEqual, c: 5)
.activate()

centerSquare.constraint(on: view)
    .center()
    .square(to: 100)
.activate()

Installation

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

pod 'Constraints'

Author

Serhiy Vysotskiy

License

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

Latest podspec

{
    "name": "Constraints",
    "version": "1.2.7",
    "summary": "Easy Swift programmatic constraints",
    "homepage": "https://github.com/vysotskiyserhiy/Constraints",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Serhiy Vysotskiy": "[email protected]"
    },
    "source": {
        "git": "https://github.com/vysotskiyserhiy/Constraints.git",
        "tag": "1.2.7"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Constraints/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This