From the course: iOS Development: Auto Layout Programmatically

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add Visual Format Language to subviews

Add Visual Format Language to subviews - iOS Tutorial

From the course: iOS Development: Auto Layout Programmatically

Start my 1-month free trial

Add Visual Format Language to subviews

- [Instructor] We got out button view on to the label view as visual layout language. I'll get a head start because I actually have some code that's already written over here in layout views. Remember that equal margin stuff from the stack view so I've got some of this already written and I can copy that, move it up to add label view and stick it inside where the constraints are. And then I can start modifying this. First thing I wanna modify is the views themselves 'cause we're gonna have new views. And so the first one, let's just delete all that so that we don't have all this junk in the way, and quote quote label, and that's gonna be the label. And quote quote and image view, and that's the image view. Next I'm gonna add metrics which I didn't have in the original one here, and that'll be typed out as string any and I'll leave a blank metric for now but we're gonna get to it in a little bit. And then I'm gonna copy this constraint here and duplicate it with copy paste. And now I'm…

Contents