Popularity
2.6
Stable
Activity
0.0
Stable
110
2
15
Programming language: Swift
License: BSD 3-clause "New" or "Revised" License
Tags:
Layout
Auto Layout
Cassowary alternatives and similar libraries
Based on the "Auto Layout" category.
Alternatively, view Cassowary 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 -
Swift-iOS-Localize-Constraint
localize constraint on the fly -
Draftsman
Draftsman is a Layout builder based on AutoLayout with Declarative approach
Appwrite - The Open Source Firebase alternative introduces iOS support
Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
Promo
appwrite.io
* 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 Cassowary or a related project?
README
Cassowary Swift
A Swift port of the Cassowary linear constraints solver. Tested on OS X, iOS and Linux.
Example usage
let solver = Solver()
let left = Variable("left")
let mid = Variable("mid")
let right = Variable("right")
try solver.addConstraint(mid == (left + right) / 2)
try solver.addConstraint(right == left + 10)
try solver.addConstraint(right <= 100)
try solver.addConstraint(left >= 0)
solver.updateVariables()
// left.value is now 90.0
// mid.value is now 95.0
// right.value is now 100.0
try solver.addEditVariable(variable: mid, strength: Strength.STRONG)
try solver.suggestValue(variable: mid, value: 2)
solver.updateVariables()
// left.value is now 0.0
// mid.value is now 5.0
// right.value is now 10.0
Documentation
Documentation can be found on CocoaDocs
Acknowledgements
Cassowary Swift originally started as a direct port of kiwi-java by Alex Birkett