Engineering and Technology
With this course, you will learn about AutoLayout and how to use stack views and constraints to create pixel-perfect UIs.
Welcome to AutoLayout! In this course, you will learn all the possible ways of laying out a view and how to determine how views should adapt when the available screen size changes. We will explore AutoLayout and constraints, which are the premiere tools for building adaptive views. Throughout the course, you will survey various methods for implementing AutoLayout and use stack views to intuitively construct interfaces without getting muddled in the details. You will also investigate the properties that control how elements are sized using AutoLayout and examine the nuances of compression resistance and content hugging. Additionally, you will build and tweak layouts while exploring all the properties of stack views, modify axes, spacing, alignments, and distributions to arrange contained subviews, and generate and configure constraints using Interface Builder and storyboards. We will analyze the interplay between stack views and different UI elements and devices, troubleshoot common problems affecting horizontal stack views and elements with similar view properties, and compose interfaces that embed stack views within stack views. Finally, you will have the opportunity to use stack views to experiment with vertical layouts and recreate an interface from a very well-known app.