qrush / motion-layout

A nice way to use iOS6+ autolayout in your RubyMotion app. Use ASCII-art inspired format strings to build your app's layout!
MIT License
215 stars 29 forks source link

Add options to Layout #11

Open siuying opened 10 years ago

siuying commented 10 years ago

This patch allow user to set options in NSLayoutConstraint#constraintsWithVisualFormat:options:metrics:views: with simple symbol (like :left, :right, :trailing... etc), and by default use option 0 (same as that in NSLayoutConstraint#constraintsWithVisualFormat:options:metrics:views:).

This patch is necessary because in many use case, the current option NSLayoutFormatAlignAllCenterX and NSLayoutFormatAlignAllCenterY will cause conflicts.

This is based on @wejn patch, added document and examples, and merge with head. Please consider merging this, thank you!

qrush commented 10 years ago

Hey there, I'm looking for a new maintainer for this. Can you check out #13?

siuying commented 10 years ago

no longer using rubymotion in production...