(Swift, macOS, storyboards)
I try to make a simple page with an scroll, text and images. Similar to help pages in all mac programs. For instance, TextEdit help:
I tried many things. For instance:
- Scroll View with constraints 0 to top, bottom, leading, trailing
- Inside the Scroll View: a Label, an Image View, another Label. The labels with constraints 20px top, bottom, leading, trailing.
- Labels Priority 750. The rest of constraints Priority 1000
With this, the user can change the width and height of the window, the text adapts but if the window is smaller than the content, I do not see the scroll. The attributes of the scroll are Show Vertical Scroller and Automatically Hide Scroller. If I change one of the options, I do not see the scroll space (or I see the scroll but not the movable part of the scroll)
How to have text, images, a window that can change width, height, and a scroll that appears when the content is bigger than the window. (Like a regular web page or the help that Apple has in many programs)?