Description
Easy to write auto layout constraints, with minimal extensions to standard namespaces.
WWLayout alternatives and similar libraries
Based on the "Auto Layout" category.
Alternatively, view WWLayout alternatives based on common mentions on social networks and blogs.
-
PureLayout
The ultimate API for iOS & OS X Auto Layout — impressively simple, immensely powerful. Objective-C and Swift compatible. -
Cartography
A declarative Auto Layout DSL for Swift :iphone::triangular_ruler: -
EasySwiftLayout
Lightweight Swift framework for Apple's Auto-Layout -
MisterFusion
MisterFusion is Swift DSL for AutoLayout. It is the extremely clear, but concise syntax, in addition, can be used in both Swift and Objective-C. Support Safe Area and Size Class. -
Cupcake
An easy way to create and layout UI components for iOS (Swift version). -
QuickLayout
Written in pure Swift, QuickLayout offers a simple and easy way to manage Auto Layout in code. -
VFLToolbox
fancy Swift implementation of the Visual Format Language. -
HypeUI
🌺 HypeUI is a implementation of Apple's SwiftUI DSL style based on UIKit -
KVConstraintKit
An Impressive Auto Layout DSL for iOS, tvOS & OSX. & It is written in pure swift. -
FrameLayoutKit
FrameLayoutKit is a super fast and easy to use autolayout kit -
AutoLayoutPlus
A bit of steroids for AutoLayout, powered by Swift. -
SwiftyLayout
Lightweight declarative auto-layout framework for Swift -
Draftsman
Draftsman is a Layout builder based on AutoLayout with Declarative approach -
Swift-iOS-Localize-Constraint
localize constraint on the fly
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of WWLayout or a related project?
README
WWLayout <!-- -->
Easy to write auto layout constraints, with minimal extensions to standard namespaces.
Feature Highlights
- Easy to use, readable API
- Backwards-compatible (i.e. pre iOS 11) Safe Area constraints
- Tag constraints to easily switch between different layouts (coming soon)
- Automatic switching of size-class based constraints (coming soon)
Introduction
Constraints are added to a view using the view's layout
property, like so:
myView.layout.width(400)
Multiple constraints are easily added by chaining calls:
myView.layout.width(400).height(200)
A more complicated example:
let container = UIView()
let child = UIView()
container.layout.fill(.safeArea)
child.layout
.fill(container, axis: .x, inset: 20)
.center(in: container, axis: .y, priority: .high)
.top(.lessOrEqual, to: container, offset: 100)
.height(toWidth: 0.5)
Dcumentation
[Documentation can be found here](//ww-tech.github.io/wwlayout/)
Installation
Swift Package Manager
The WWLayout Package URL is:
https://github.com/ww-tech/wwlayout.git
Add the package dependency to your Xcode project using the File
-> Swift Packages
-> Add Package Dependency...
menu item.
Cocoapods
Simply add WWLayout to your Podfile
:
pod 'WWLayout'
Contributing
Authors
- Steven Grosmark, [email protected]
- WW iOS Team
License
WWLayout is © copyright by WW International.
WWLayout is licensed under the Apache-2.0 Open Source license.
*Note that all licence references and agreements mentioned in the WWLayout README section above
are relevant to that project's source code only.