Masonry
Masonry copied to clipboard
Method `-mas_distributeViewsAlongAxis:withFixedSpacing:leadSpacing:tailSpacing:` is making a fixed width/height quietly. But why?
https://github.com/SnapKit/Masonry/blob/8bd77ea92bbe995e14c454f821200b222e5a8804/Masonry/NSArray%2BMASAdditions.m#L54 https://github.com/SnapKit/Masonry/blob/8bd77ea92bbe995e14c454f821200b222e5a8804/Masonry/NSArray%2BMASAdditions.m#L74
Please check this. I don't understand why it is necessary to make views' width/height to be same with previous view. Because this method is intended to make views arranging with fixed spacing rather than item size.
agree I have the same qusetion , so I copy this function to my work space , and reduce this line to help me solve this question.