oleksii-demedetskyi / Parus

Parus is simple chain style auto-layout helper for objective-c.
MIT License
106 stars 4 forks source link

PVVFL should allow to add more than one options. #30

Closed xNekOIx closed 10 years ago

xNekOIx commented 10 years ago

It could be useful sometimes to add more then one option. e.g. following code should shrink all views to the topMostView width:

PVVFL(@"H:|-[topMostView]-|").withViews(views).asArray;
PVVFL(@"V:|[topMostView][secondView][thirdView]|")
      .withViews(views).alignAllRight.alignAllLeft.asArray;

@AndreyMoskvin @DAlOG What do you think?

oleksii-demedetskyi commented 10 years ago

What combination are correct and possible?

1) Left and Right 2) Top and Bottom

Forsarion commented 10 years ago

Hmm, definetely we need to add more tests for VFL... @DAlOG Do you want to specify combinations to improve autocompletion?

oleksii-demedetskyi commented 10 years ago

@AndreyMoskvin I agree with you, we need more tests. We wind this 2 cases today, and try to look forward to understand which cases are also appropriate.

I think we need to add just special case alignment. alignAllLeftAndRight for example. This is most simple solution for this time.