HPLayout

1.0.0

A simple layout DSL to make your Autolayout life a little easier
henrik-dmg/HPLayout

What's New

Initial Release

2021-03-18T13:23:27Z

HPLayout

A simple layout DSL to make your Autolayout life a little easier.

Installation

Xcode

File -> Swift Packages -> Add Package Dependency -> https://github.com/henrik-dmg/HPLayout

Package.swift

.package(url: "https://github.com/henrik-dmg/HPLayout", from: "0.2.0")

Usage

yourAwesomeView.layout {
    $0.leading == someOtherView1.trailingAnchor + 8
    $0.trailing <= someOtherView2.trailingAnchor
    $0.spanHorizontally(.superView, constant: 4)
}

Description

  • Swift Tools 5.1.0

Dependencies

  • None
Last updated: Fri Mar 19 2021 06:27:46 GMT-0500 (GMT-05:00)