Latest | 1.3.4 |
---|---|
Homepage | https://github.com/vysotskiyserhiy/Constraints |
License | MIT |
Platforms | ios 10.0 |
Frameworks | UIKit |
Authors |
Example
// pinning and adding subviews
backgroundView.constraint(on: view)
.pin()
blueRect.constraint(on: view)
.height(c: 40)
.safePin(.top, .left, .bottom)
centerSquare.constraint(on: view)
.center()
.square(to: 100)
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.3.4", "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.3.4" }, "platforms": { "ios": "10.0" }, "source_files": "Constraints/Classes/**/*", "frameworks": "UIKit", "swift_versions": "5.0" }
Fri, 17 May 2019 10:14:18 +0000