Latest0.0.3
Homepagehttps://github.com/r-kaga/CodeLayouter
LicenseMIT
Platformsios 10.0
Authors

Requirements

CodeLayouter is written in Swift 4.1. iOS 11.0+ Required

Installation

CodeLayouter is available through CocoaPods.
Carthage is comming soon.

Cocoapods

pod "CodeLayouter"

Example

LikeAirbnb Login

CodeLayouter

loginButton.top(equalTo: view.topAnchor, constant: 30)
          .right(equalTo: view.rightAnchor, constant: -20)
          .sizeToFit()

facebookLoginButton.centerX(equalTo: view.centerXAnchor)
                  .centerY(equalTo: view.centerYAnchor)
                  .width(constant: view.frame.width - 40)
                  .height(constant: 50)

createAccountButton.top(equalTo: facebookLoginButton.bottomAnchor, constant: 15)
                  .width(constant: view.frame.width - 40)
                  .height(constant: 50)
                  .centerX(equalTo: view.centerXAnchor)

titleLabel.bottom(equalTo: facebookLoginButton.topAnchor, constant: -50)
         .centerX(equalTo: view.centerXAnchor)
         .width(constant: view.frame.width - 40)
         .height(constant: 30)

seeOptionLabel.top(equalTo: createAccountButton.bottomAnchor, constant: 15)
             .left(equalTo: view.leftAnchor, constant: 20)
             .height(constant: 30)

logoImageView.bottom(equalTo: titleLabel.topAnchor, constant: -30)
             .left(equalTo: view.leftAnchor, constant: 20)
             .width(constant: 80)
             .height(constant: 80)

descLabel.top(equalTo: seeOptionLabel.bottomAnchor, constant: 30)
         .centerX(equalTo: view.centerXAnchor)
         .sizeToFit()

TableView full of screens

CodeLayouter

tableView.fillTo(view: self.view)

Latest podspec

{
    "name": "CodeLayouter",
    "version": "0.0.3",
    "summary": "This is for Layout by code",
    "description": "This is for Layout by code.nMore information is coming soon...",
    "homepage": "https://github.com/r-kaga/CodeLayouter",
    "license": "MIT",
    "authors": {
        "r-kaga": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/r-kaga/CodeLayouter.git",
        "tag": "0.0.3"
    },
    "source_files": "CodeLayouter/*.*"
}

Pin It on Pinterest

Share This