Latest 0.1.3
Homepage https://github.com/NeoGolightly/CartographyKit
License MIT
Platforms ios 9.0, osx 10.9
Dependencies Cartography
Frameworks Cartography
Authors

Cartography is a great Autolayout framework by robb. It’s very flexible and makes working with Apples Autolayout fun. But if you just want to create simple layouts you end up with writing many:

constrain(view1) { view1 in
        view1.height == view.superview!.height
        view1.left == view.superview!.left
        view1.right == view.superview!.right
        view1.centerX == view.superview!.centerX
}

CartographyKit uses Cartography under the hood but makes working with it much easier for simple layouts:

CartographyKit.height(view: yourView)
CartographyKit.left(view: yourView)
CartographyKit.right(view: yourView)
CartographyKit.centerX(view: yourView)

Latest podspec

{
    "name": "CartographyKit",
    "version": "0.1.3",
    "summary": "A little helper that simplifies the Cartography Autolayout framework",
    "description": "Set your Cartography Autolayout in just one line of code for simple tasks like width, height...",
    "homepage": "https://github.com/NeoGolightly/CartographyKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Neo Golightly": "[email protected]"
    },
    "platforms": {
        "ios": "9.0",
        "osx": "10.9"
    },
    "source": {
        "git": "https://github.com/NeoGolightly/CartographyKit.git",
        "tag": "0.1.3"
    },
    "source_files": "CartographyKit/*.swift",
    "frameworks": "Cartography",
    "dependencies": {
        "Cartography": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This