2. Nest Auto Layouts Inside Each Other

Nesting means putting one auto layout frame inside another. This is how you build complex, flexible layouts — a card that has a row inside a column, or a list that contains multiple cards.

Think of it like boxes inside boxes. Each box does its own job, and they work together.

Nested auto layout diagram — list of cards
Nested Auto Layouts: The outer list frame (Vertical AL) stacks cards. Each card (Horizontal AL) manages its own row layout. Boxes inside boxes, each handling its own job.

Example: Making a list of cards

  1. First, build one card using Auto Layout with Horizontal direction (icon, text, number)
  2. Style the card: add a Fill color, Corner radius, and Padding
  3. Select the entire card frame
  4. Press Ctrl + D (Windows) or Cmd + D (Mac) to duplicate it. Make 2 or 3 copies
  5. Edit each copy so they have different content (different account names, balances)
  6. Select all the cards (click and drag over them, or hold Shift and click each)
  7. Press Shift + A to wrap them in a new Auto Layout frame
  8. In the right panel, adjust Gap to control the space between each card (e.g. 12)
  9. Adjust Padding to control the space around the edges of the whole list (e.g. 16)

You now have a nested structure:

List frame (Vertical Auto Layout) ├── Card 1 (Horizontal Auto Layout) │ ├── Icon │ └── Text group (Vertical Auto Layout) ├── Card 2 (Horizontal Auto Layout) │ ├── Icon │ └── Text group (Vertical Auto Layout) └── Card 3 (Horizontal Auto Layout) ├── Icon └── Text group (Vertical Auto Layout)

Editing nested items

Adding a new card later

  1. Click into the list and select any card
  2. Press Ctrl + D / Cmd + D to duplicate
  3. The new card automatically appears in the correct position with the correct spacing

Key concept

Each Auto Layout frame handles its own job. The outer list handles vertical stacking and spacing. Each inner card handles its own horizontal layout. This separation makes everything easier to manage and change.