nsomar / OAStackView

Porting UIStackView to iOS 7+
MIT License
2.14k stars 200 forks source link

Intrinsic Content Size doesn't seem to be set anywhere? #58

Closed oliverfoggin closed 8 years ago

oliverfoggin commented 8 years ago

With UIStackView you can pin a stack view to the bottom, leading, and trailing constraints of the superview and the height will be set by the intrinsic content size of the contents.

Put three labels in and change the fonts and text etc... and the UIStackView will resize to fit them in properly.

OAStackView first throws an error in IB saying it needs the 4th constraint and then at run time it will keep the same frame as was given at design time. It doesn't update its frame based on its content.

oliverfoggin commented 8 years ago

This is actually an issue with nested OAStackviews in IB.