Latest 0.1.0
Homepage https://github.com/KelaKing/KLLayoutGuide
License WTFPL
Platforms ios 8.0
Authors

Porting UILayoutGuide to iOS 8+

What is UILayoutGuide🤔

A rectangular area that can interact with Auto Layout.

let space1 = UILayoutGuide()
view.addLayoutGuide(space1)

let space2 = UILayoutGuide()
view.addLayoutGuide(space2)

space1.widthAnchor.constraintEqualToAnchor(space2.widthAnchor).active = true
saveButton.trailingAnchor.constraintEqualToAnchor(space1.leadingAnchor).active = true
cancelButton.leadingAnchor.constraintEqualToAnchor(space1.trailingAnchor).active = true
cancelButton.trailingAnchor.constraintEqualToAnchor(space2.leadingAnchor).active = true
clearButton.leadingAnchor.constraintEqualToAnchor(space2.trailingAnchor).active = true

For detail see the documentation

How to use on iOS 8?

pod 'KLLayoutGuide'

then just use UILayoutGuide

Latest podspec

{
    "name": "KLLayoutGuide",
    "version": "0.1.0",
    "summary": "Porting UILayoutGuide to iOS 8+",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/KelaKing/KLLayoutGuide",
    "license": {
        "type": "WTFPL",
        "file": "LICENSE"
    },
    "authors": {
        "KelaKing": "[email protected]"
    },
    "source": {
        "git": "https://github.com/KelaKing/KLLayoutGuide.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "KLLayoutGuide/*"
}

Pin It on Pinterest

Share This