Add code to prepare for the Visual Format Language.
- [Instructor] You've seen how clunky…writing individual constraints can be.…It'll be nice to write in a more compact form.…Auto layout gives you that possibility…with the visual format language.…This is a set of constraints you add with a string…that describes that layout either horizontally or vertically…in this chapter, I'll show you how to use…the visual format language.…But first, we have some set up steps to do.…I'm gonna code this example in hamburger view controller.…So, go ahead and stop the app.…Close console, so you can actually see something…and go to the hamburger view controller…and hit over to layout views…and the first thing we want to do as always…is deal with the auto resizing mask.…
And I can actually go over to oatmeal here…and head back to the top of layout views…and do a little quick cheat.…And paste them in.…So, nothing like copying and pasting.…Next, because visual format language uses strings,…it needs a little help understanding the names of our views.…
You use a dictionary of views to help it out.…
- 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.