Reading · 10 min

Auto layout

You are previewing a free lesson. Enrol to save progress and take quizzes.

Auto layout makes frames behave like real interface code: items stack with consistent spacing and resize with their content. A button built with auto layout grows when its label changes instead of needing manual adjustment.