motion-layout icon indicating copy to clipboard operation
motion-layout copied to clipboard

Add options to Layout

Open siuying opened this issue 11 years ago • 2 comments

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!

siuying avatar Dec 12 '13 16:12 siuying

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

qrush avatar Jan 27 '14 19:01 qrush

no longer using rubymotion in production...

siuying avatar Jan 28 '14 06:01 siuying