I created a simple view setting in the interface builder. Here's what it looks like:

The hierarchy of representations is simple:
view - scrollView -- label
The scroll view is displayed with a grey background, tied to the top, top, bottom, and top rows from above with 0 restrictions.
The label is displayed with a yellow background and has limitations as shown. In addition, the label has a content hugging priority of 1000 for both horizontal and vertical, and has a content compression resistance priority of 1000 for horizontal and vertical.
In portrait orientation, the label has the correct size:

However, in landscape orientation, the label has no horizontal size (I wanted the label to fill the width of the screen, there are less restrictions, as shown):

How can I correctly assign this label horizontally in landscape orientation?
source share