Tumgik
#autolayoutshorthand
rentzsch · 10 years
Text
AutoLayoutShorthand 1.0
AutoLayoutShorthand is my new(-ish) library for creating and adding Cocoa Auto Layout constraints.
Even with Visual Format Language (VFL), Auto Layout is verbose.
AutoLayoutShorthand strives to highlight the intent of your constraints with a simple literal dictionary-based syntax.
AutoLayoutShorthand also eliminates the need for stringly-typed code, you'll get compile-time errors when you forget to update a view's variable name. Xcode features like Edit All in Scope will also work.
AutoLayoutShorthand seamlessly simultaneously supports both iOS and OS X: the same constraint code works with both UIViews and NSViews.
6 notes · View notes