Closed mattiasjahnke closed 8 years ago
I found some problems when testing this in the Example app that should be resolved now.
removeDecendentConstraints
method but obviously caused some problems when I had removed it. I've set 'remove at build time' on these constraints.[self.distributionStrategy removeAddedConstraints];
[self.alignmentStrategy removeAddedConstraints];
This caused a layout to occur after the distributions removal and before the alignment - resulting in constraint warnings. I've therefore exposed the constraints on those objects as a readonly array so that OAStackView can remove all of them without causing a layout before all constraints are removed.
@mattiasjahnke thanks for your work! please resolve final comments and I will merge PR
Taken care of ;)
Merged, thanks @mattiasjahnke!
This PR removes
removeDecendentConstraints
method, since the method basically removed all constraints that involved its subviews (and not only constraints added by the OAStackView layout).Changes: