Use a layout manager instead of constraints