Auto layout, from zero

Stop resizing boxes by hand. Five short lessons that follow chapter 6 of the book, from your first self-sizing button to a Login screen that adapts to any width.

  • 5 lessons
  • About 30 min
  • Beginner
  • Free

Lessons

  1. 01Frames that grow with their content5 min
  2. 02Direction, gap, padding and alignment6 min
  3. 03Hug, fill, fixed and constraints6 min
  4. 04Nesting: a login form made of stacks7 min
  5. 05Wrap, min and max: layouts that survive real content6 min

What you will be able to do

  • Build a button that resizes itself when the label changes
  • Read and set direction, gap, padding and alignment
  • Choose between Hug, Fill and Fixed, and use constraints
  • Build a Login form from the inside out with nested frames
  • Keep layouts intact with real content: wrap, min/max, truncation

Before you start

A free Figma account and a design file with an empty iPhone 16 frame (393 by 852). If you have the book, use the Hi-Fi page of your travel app instead.

When you are done, check a real file with Auto Layout Lint, a free tool on Fabio’s site that marks the Auto Layout problems in a frame.