You have a parent frame with vertical auto layout and inside it, a child frame with horizontal auto layout. What will be the main direction of the child frame's items?
Think about how nested frames keep their own layout direction.
Each auto layout frame controls its own direction. The parent frame's vertical layout stacks child frames vertically, but inside a child frame with horizontal layout, its items arrange horizontally.
You have a nested auto layout with padding set on both parent and child frames. Which option best describes how padding affects the layout?
Consider padding as space inside the frame's boundary.
Padding on the parent frame creates space inside its edges around all children. Padding on a child frame creates space inside that child's edges around its own items. Both apply independently.
You want to create a responsive card component using nested auto layouts. The parent frame stacks cards vertically, and each card has a horizontal layout with text and an icon. Which nested auto layout setup best supports responsive resizing?
Think about which frame should resize and which should keep fixed size.
Using hug contents height on the parent allows cards to grow/shrink vertically. Inside each card, horizontal layout with text set to fill container lets text resize responsively, while icon stays fixed.
You notice that items inside a nested auto layout frame overlap instead of spacing out. Which of the following is the most likely cause?
Check spacing settings inside the child frame.
If spacing between items is zero or negative, items can overlap. Padding or direction conflicts usually don't cause overlap but affect layout flow. Hug contents affects sizing but not overlap directly.
You have a complex dashboard with many nested auto layout frames. Performance is slow when resizing or moving elements. Which approach best improves performance without losing layout flexibility?
Think about how complexity affects performance.
Too many nested auto layouts increase calculation overhead. Flattening layers and using fixed sizes where possible reduces recalculations while keeping flexibility. Fixed position frames lose flexibility. Padding and spacing don't improve performance significantly.