Complete the code to set the text resizing mode to fit the container width.
text.resizeMode = "[1]"
Setting resizeMode to fitWidth makes the text adjust its size to fit the container's width.
Complete the code to enable text truncation with an ellipsis when it overflows.
text.overflowBehavior = "[1]"
Setting overflowBehavior to ellipsis adds '...' when text is too long.
Fix the error in the code to make the text auto-resize within its container height.
text.resizeMode = "[1]"
Using autoHeight allows text to resize based on container height.
Fill both blanks to set text to resize automatically and truncate overflow with ellipsis.
text.resizeMode = "[1]" text.overflowBehavior = "[2]"
Setting resizeMode to autoWidth resizes text horizontally, and overflowBehavior to ellipsis truncates overflow with dots.
Fill all three blanks to set text to auto resize height, clip overflow, and set minimum font size to 12.
text.resizeMode = "[1]" text.overflowBehavior = "[2]" text.minFontSize = [3]
Using autoHeight resizes text vertically, clip hides overflow without dots, and setting minFontSize to 12 ensures text doesn't get too small.