All Projects → SugarAndCandy → SuperPuperDuperLayout

SugarAndCandy / SuperPuperDuperLayout

Licence: MIT license
Super puper duper mega easy awesome wrapper over auto layout!!111!!1!!!1!!!11111!!!1!!

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to SuperPuperDuperLayout

Tinyconstraints
Nothing but sugar.
Stars: ✭ 3,721 (+26478.57%)
Mutual labels:  layout, constraints, sugar, auto
Snapkit
A Swift Autolayout DSL for iOS & OS X
Stars: ✭ 18,091 (+129121.43%)
Mutual labels:  layout, constraints, auto
Kvconstraintkit
An Impressive Auto Layout DSL for iOS, tvOS & OSX. & It is written in pure swift.
Stars: ✭ 91 (+550%)
Mutual labels:  layout, constraints, auto
Stevia
🍃 Concise Autolayout code
Stars: ✭ 3,182 (+22628.57%)
Mutual labels:  layout, constraints, auto
EZAnchor
An easier and faster way to code Autolayout
Stars: ✭ 25 (+78.57%)
Mutual labels:  layout, constraints, sugar
Easypeasy
Auto Layout made easy
Stars: ✭ 1,877 (+13307.14%)
Mutual labels:  layout, constraints, auto
wwlayout
Swifty DSL for programmatic Auto Layout in iOS
Stars: ✭ 46 (+228.57%)
Mutual labels:  layout, constraints
Cupcake
An easy way to create and layout UI components for iOS (Swift version).
Stars: ✭ 273 (+1850%)
Mutual labels:  layout, constraints
Nerdyui
An easy way to create and layout UI components for iOS.
Stars: ✭ 381 (+2621.43%)
Mutual labels:  layout, constraints
Easyswiftlayout
Lightweight Swift framework for Apple's Auto-Layout
Stars: ✭ 345 (+2364.29%)
Mutual labels:  layout, constraints
Autoinch
优雅的iPhone全尺寸/等比例精准适配工具
Stars: ✭ 395 (+2721.43%)
Mutual labels:  layout, auto
VanillaConstraints
🍦 Simplified and chainable AutoLayout constraints for iOS.
Stars: ✭ 42 (+200%)
Mutual labels:  layout, constraints
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+29557.14%)
Mutual labels:  layout, constraints
Snapkitextend
SnapKit的扩展,SnapKit类似于Masonry,但是其没有对Arry的设置和对等间距排列的布局等,此扩展是类似Masonry的写法对SnapKit的补充,同时补充九宫格布局方式
Stars: ✭ 110 (+685.71%)
Mutual labels:  layout, constraints
Uicollectionview Layouts Kit
📐 A set of custom layouts for UICollectionView with examples [Swift 5.3, iOS 12].
Stars: ✭ 410 (+2828.57%)
Mutual labels:  layout, constraints
Arranged
Open source replacement of UIStackView for iOS 8 (100% layouts supported)
Stars: ✭ 202 (+1342.86%)
Mutual labels:  layout, constraints
Core Layout
Flexbox & CSS-style Layout in Swift.
Stars: ✭ 215 (+1435.71%)
Mutual labels:  layout, constraints
samp-discord-plugin
SA:MP Discord Rich Presence plugin
Stars: ✭ 63 (+350%)
Mutual labels:  auto
DragPanel
A nice vertical drag layout, a bit like BottomSheet, but with strong customization!
Stars: ✭ 21 (+50%)
Mutual labels:  layout
awake-heroku
A package help your heroku (https://heroku.com/) app is always runs . Wake up your heroku app !
Stars: ✭ 45 (+221.43%)
Mutual labels:  auto

SuperPuperDuperLayout

Lightweight, elegant and safe wrapper over auto layout.

Inspired by Layout Anchors and SnapKit.

Without overheads such as «extension UIView», «extension UILayoutGuide», «objc_setAssociatedObjectAssociatedObject», «objc_getAssociatedObject» etc.

CocoaPods CocoaPods CocoaPods

Contents

For example

Layout Anchors

By using Layout Anchors it would be as below

class ViewController: UIViewController {
    private lazy var someView = UIView()

    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(someView)
        someView.translatesAutoresizingMaskIntoConstraints = false
        someView.heightAnchor.constraint(equalToConstant: 30).isActive = true
        someView.widthAnchor.constraint(equalToConstant: 30).isActive = true
        someView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
        someView.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true
    }
}

But if you support iOS 8 everything becomes worse, because of NSLayoutConstraint(item:attribute:relatedBy:blah:blah:blah:blah)

SuperPuperDuperLayout

You may use "SuperPuperDuperLayout" like this

import SuperPuperDuperLayout

class ViewController: UIViewController {
    private lazy var someView = UIView()

    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(someView)
        Layout.to(someView) {
            $0.size.equal.value(.init(width: 30, height: 30))
            $0.center.equalToSuperview.value(.zero)
        }
    }
}

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.4.0+ is required to build SuperPuperDuperLayout 1.0.0.

To integrate SuperPuperDuperLayout into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'TargetName' do
    pod 'SuperPuperDuperLayout'
end

Then, run the following command:

$ pod install

Requirements

  • iOS 8.0+
  • Xcode 9.0+
  • Swift 4.1+

Credits

License

SuperPuperDuperLayout is released under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].