swift - How to create stack views with constraints to the parent view's margins in Interface Builder? -


i want have horizontal stack view, or other view, constrain width of view's margins.

i first add interface elements.

(image 1)

when put them in stack, resize (what understand) intrinsic content sizes? okay.

(image 2)

at point, items turn red if selected. when click "update frames" button in interface builder bigger , bigger. until extend right off screen. going on? why updating frames make them grow beyond confines of screen?

(image 3)

okay... maybe can ctrl-drag between stack , view , pick constraints based on view's margins, right? maybe fix it...

let's constrain our stack resize way want.

weird thing is, doesn't matter if click , drag view stack or stack view... either way end constraints seem describe reverse of want.

not meant!

i want use view's margins define stack view's width, not other way around! also, added 67.5 reason.

thankfully there's place reverse these , remove 67.5, right? click on constraint , make changes...

(image 6)

and i'm in pretty shape. think. mean looks terrible, @ least they're in stack... how set minimum value label?

(image 7)

thanks commentary. humor , poking fun @ newbie welcome. images reduced 2 because don't have reputation.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -