Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution feature #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Distribution feature #124

wants to merge 1 commit into from

Conversation

phantomato
Copy link

This feature lets the user to distribute views without auto constraining their edges to superview.
The views will be aligned by the view who's position is already constrained to its superview.

Add the ability to distribute views without constraining them to their superview
@phantomato phantomato changed the title Roman Tkachenko Distribution feature Feb 19, 2016
@mickeyreiss
Copy link
Contributor

Hi Roman,

This is an interesting idea. I'm concerned about the value proposition, however. Can you talk about the use-case where it makes sense to distribute views relative to each other without a parent container? It seems like a few lines of autoPin…s could also solve for this layout.

In general, I hesitate to change PureLayout's public API, except when absolutely warranted.

@phantomato
Copy link
Author

Sure! I had a use case where a I had to distribute a list of Items under a title. Then I had to pin another view to the last view of the distributed array. But that was not possible due to the fact that the last view pins it's edge to it's superview.

Distributing an array of views with one line of code is a really essential feature. I had plenty cases of this kind where distributed views had be attached to other views

21 февр. 2016 г., в 1:04, Mickey Reiss [email protected] написал(а):

Hi Roman,

This is an interesting idea. I'm concerned about the value proposition, however. Can you talk about the use-case where it makes sense to distribute views relative to each other without a parent container? It seems like a few lines of autoPin…s could also solve for this layout.

In general, I hesitate to change PureLayout's public API, except when absolutely warranted.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants