Latest 1.0
Homepage https://github.com/PaoloCuscela/Caliber
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors


GitHub Stars


Pod Version


Platform


License

Overview

Implementing autolayout constrains programmatically made dead simple.

Getting Started

import Caliber

// Setup view and add to a superview.

let aView = UIView()
aView.backgroundColor = UIColor.red
view.addSubview(aView)

// Add Constraints

aView.caliber   .top(with: view, .top)
                .centerHorizontally(in: view)
                .width = 100

aView.caliber.aspect = 16/9

// That's All. 

Overview

GetStarted

Prerequisites

  • Xcode 9.0 or newer
  • Swift 4.0

Installation

CocoaPods

use_frameworks!
pod 'Caliber'

Manual

  • Download the repo
  • ⌘C ⌘V the Caliber.swift file into your project
  • In your Project’s Info go to ‘Build Phases
  • Open ‘Compile Sources‘ and add Caliber.swift

License

Caliber is released under the MIT License.

Latest podspec

{
    "name": "Caliber",
    "version": "1.0",
    "summary": "Implementing autolayout constrains programmatically made dead simple.",
    "homepage": "https://github.com/PaoloCuscela/Caliber",
    "screenshots": [
        "",
        ""
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Paolo Cuscela": "[email protected]"
    },
    "source": {
        "git": "https://github.com/PaoloCuscela/Caliber.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Caliber/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This