Complete the code to set the horizontal alignment of items in an Auto Layout frame.
frame.layoutAlign = '[1]'
Setting layoutAlign to LEFT aligns items horizontally to the left inside the Auto Layout frame.
Complete the code to set vertical alignment of items in an Auto Layout frame.
frame.layoutAlignVertical = '[1]'
Setting layoutAlignVertical to CENTER aligns items vertically centered inside the Auto Layout frame.
Fix the error in setting the alignment property for Auto Layout items.
frame.primaryAxisAlignItems = '[1]'
The correct value for distributing items with space between them is SPACE_BETWEEN. Other values are case sensitive or invalid.
Fill both blanks to set horizontal and vertical alignment inside an Auto Layout frame.
frame.layoutAlign = '[1]' frame.layoutAlignVertical = '[2]'
Setting layoutAlign to LEFT aligns items horizontally left, and layoutAlignVertical to TOP aligns items vertically at the top.
Fill all three blanks to set primary axis alignment, counter axis alignment, and spacing mode in Auto Layout.
frame.primaryAxisAlignItems = '[1]' frame.counterAxisAlignItems = '[2]' frame.primaryAxisSizingMode = '[3]'
primaryAxisAlignItems set to SPACE_BETWEEN spaces items evenly along the main axis. counterAxisAlignItems set to CENTER centers items on the cross axis. primaryAxisSizingMode set to MIN makes the frame size to fit its content.