Learn about the use of Visual Format Language in 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 gonna go fix my constraints here.…
- When and why to use Auto Layout programmatically
- Creating constraints in Swift
- Resolving errors in Auto Layout
- Using the safe area
- Working with the Visual Format Language
- Adding a stack view
- Harnessing the power of inequalities and priorities in constraints
- Understanding traits and size classes
Skill Level Intermediate
Learning LayoutTest for iOS Developmentwith Kyle Sherman1h 43m Intermediate
Designing iOS and Android Appswith Renata Phillippi1h 6m Intermediate
1. Basic Concepts in Auto Layout
2. Coding Constraints
3. The Visual Format Language
4. Stack Views
5. Advanced Layout
6. Size Classes
Next steps1m 42s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.