Distribution feature#124
Distribution feature#124phantomato wants to merge 1 commit intoPureLayout:masterfrom phantomato:master
Conversation
Add the ability to distribute views without constraining them to their superview
|
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 In general, I hesitate to change PureLayout's public API, except when absolutely warranted. |
|
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
|
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.