Recall hug, fill, fixed, and ignore-flow choices quickly.
Hug contents vs Fill container Ask whether the object should follow content or available space. “Can’t we just resize it manually?” “Manual resize fixes this label; auto layout fixes the next label too.” Pixel nudging hides the behavior. It reframes auto layout as future-change insurance. What does fixed size protect? A dimension that should not respond to nearby content. Use it for icons, avatars, and fixed touch targets. When is ignore auto layout appropriate? For an element that must float relative to its parent while siblings flow normally. Examples include badges, close buttons, and overlays.
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in