Preventing ambiguous layout
suggest changeA frequent question about stack views inside scroll views is the ambiguous width and height alerts in Interface Builder. This answer walks through the constraints. Pin a content view’s top, bottom, leading, and trailing edges to the scroll view, then add an equal-width constraint for vertical scrolling or an equal-height constraint for horizontal scrolling. Centering the content view on both axes does not give it a size.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents