Latest 0.2.0
Homepage https://github.com/AncAinu/SwiftKeepLayout
License MIT
Platforms ios 8.0, requires ARC
Authors

This pod offers some handy attributes to KeepLayout for Swift (see the swift-legacy branch) to make it easier to use.

Version
License
Platform

Installation

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

pod "SwiftKeepLayout"

Usage

Once installed, you can fully use KeepLayout + SwiftKeepLayout by doing, SwiftKeepLayout already include KeepLayout:

import SwiftKeepLayout

Then you can do stuff like:

// With KeepLayout
myView.keepTopInset.equal = KeepValueMake(CGFloat(30), Float(600))
// With SwiftKeepLayout
myView.keepTopInset.vEqual = (30, 600)

// With KeepLayout
myView.keepTopInset.required = 40.0
// With SwiftKeepLayout
myView.keepTopInset.vEqual = 40.0

// With KeepLayout
myView.keepTopInset.min = KeepHigh(20.0)
// With SwiftKeepLayout
myView.keepTopInset.vMin = (20.0, KeepPriorityHigh)

Author

Tancrède Chazallet, please use GitHub issue system if you wish to contact me about this repository.

License

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

Latest podspec

{
    "name": "SwiftKeepLayout",
    "version": "0.2.0",
    "summary": "SwiftKeepLayout add some handy attributes to KeepLayout for swift usage.",
    "description": "SwiftKeepLayout add some handy attributes to KeepLayout for swift usage.nYou can use .vEqual rather than .equal and then give Int, Double or Tuple of Int/Double to set value and priority of constraints.",
    "homepage": "https://github.com/AncAinu/SwiftKeepLayout",
    "license": "MIT",
    "authors": {
        "Tancru00e8de Chazallet (AncAinu)": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AncAinu/SwiftKeepLayout.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This